Part Number Hot Search : 
TA124E HCT138 MM3082K DS12R887 8S600A 2SK2595 68HC05 ATMEGA32
Product Description
Full Text Search
 

To Download M37271MF-231SP Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  description the m37271mf-xxxsp is a single-chip microcomputer designed with cmos silicon gate technology. it is housed in a 52-pin shrink plastic molded dip. in addition to their simple instruction sets, the rom, ram and i/o addresses are placed on the same memory map to enable easy pro- gramming. the m37271mf-xxxsp has a osd function and a data slicer func- tion, so it is useful for a channel selection system for tv with a closed caption decoder. the features of the m37271ef-xxxsp and the m37271efsp are similar to those of the m37271mf-xxxsp except that these chips have a built-in prom which can be written electri- cally. features ? number of basic instructions ..................................................... 71 ? memory size rom ........................................................60 k bytes ram ........................................................ 1024 bytes rom for osd ....................................... 14464 bytes ram for osd ......................................... 1920 bytes ? the minimum instruction execution time .......................................... 0.5 s (at 8 mhz oscillation frequency) ? power source voltage .................................................. 5 v 10 % ? subroutine nesting ............................................. 128 levels (max.) ? interrupts ....................................................... 18 types, 16 vectors ? 8-bit timers .................................................................................. 6 ? programmable i/o ports (ports p0, p1, p2, p3 0 , p3 1 ) .............. 26 ? input ports (ports p4 0 Cp4 6 , p6 3 , p6 4 ) ......................................... 9 ? output ports (ports p5 2 Cp5 5 ) ...................................................... 4 ? 12 v withstand ports .................................................................. 11 ? led drive ports ........................................................................... 2 ? serial i/o ............................................................ 8-bit 5 1 channel ? multi-master i 2 c-bus interface ............................... 1 (2 systems) ? a-d converter (8-bit resolution) ................................... 4 channels ? pwm output circuit ........................................................... 8-bit 5 7 ? interrupt interval determination circuit ......................................... 1 ? power dissipation in high-speed mode .......................................................... 165mw (at v cc = 5.5v, 8mhz oscillation frequency, crt on, and data slicer on) in low-speed mode .......................................................... 0.33mw (at v cc = 5.5v, 32khz oscillation frequency) ? data slicer ? osd function display characters ............................... 40 characters 5 16 lines kinds of characters ..................................................... 320 kinds (in exosd mode, they can be combined with 32 kinds of extra fonts) dot structure ........................................ cc mode : 16 5 26 dots osd mode : 16 5 20 dots exosd mode : 16 5 26 dots kinds of character sizes ................................ cc mode : 2 types osd mode : 14 types exosd mode : 6 types it can be specified by a character unit (maximum 7 kinds). character font coloring, character background coloring it can be specified by a screen unit (maximum 7 kinds). extra font coloring, raster coloring, border coloring kinds of character colors ............... cc mode : 7 kinds (r, g, b) osd mode : 15 kinds (r, g, b, i) exosd mode : 7 kinds (r, g, b, i1, i2) display position horizontal ................................................................ 256 levels vertical .................................................................. 1024 levels attribute ...................... cc mode : smooth italic, underline, flash osd mode : border exosd mode : border, extra font (32 kinds) automatic solid space function window function dual layer osd function application tv with a closed caption decoder mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 2 pin configuration (top view) outline 52p4b 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 hlf h sync v sync p4 0 /ad4 p4 1 /int2 p4 2 /tim2 p4 3 /tim3 p2 4 /ad3 p2 5 /ad2 p0 1 /pwm5 p0 2 /pwm6 p1 7 /s in p4 4 /int1 p4 6 /s clk av cc rvco p5 2 /r p5 3 /g p5 4 /b p5 5 /out1 p0 4 /pwm0 p0 5 /pwm1 p1 0 /out2 p1 1 /scl1 p1 2 /scl2 p1 3 /sda1 p1 4 /sda2 p1 5 /i1 p1 6 /i2/int3 p3 0 p3 1 reset p6 4 /osc2/x cout p6 3 /osc1/x cin v cc p0 3 p2 6 /ad1 p2 7 p0 0 /pwm4 p4 5 /s out p0 6 /pwm2 p2 1 p2 2 p2 3 17 18 19 20 37 36 35 34 33 m37271mf-xxxsp m37271ef-xxxsp, m37271efsp cv in v hold cnv ss x out x in v ss 21 22 23 24 25 26 32 31 30 29 28 27 p0 7 /pwm3 p2 0
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 3 functional block diagram of m37271mf-xxxsp clock input clock output x in x out reset input av cc v cc v ss cnv ss pins for data slicer clock output for osd/ sub-clock output input ports p6 3 , p6 4 osc1 osc2 clock input for osd/ sub-clock input p1 (8) multi-master i 2 c-bus interface p3 (2) sda1 scl2 scl1 sda2 p2 (8) p0 (8) p4 (7) s in s clk s out si/o (8) p6 (2) int1 int2 pwm6 pwm5 pwm4 pwm3 pwm2 pwm1 pwm0 p5 (4) out1 b g r h sync v sync out2 a-d converter 8-bit pwm circuit 8-bit arithmetic and logical unit accumulator a (8) timer 6 t6 (8) timer 5 t5 (8) timer 4 t4 (8) timer 3 t3 (8) timer 2 t2 (8) timer 1 t1 (8) timer count source selection circuit tim2 tim3 data slicer instruction register (8) instruction decoder control signal crt circuit processor status register ps (8) stack pointer s (8) index register y (8) index register x (8) rom 60 k bytes program counter pc l (8) progam counter pc h (8) ram 1024 bytes data bus clock generating circuit 24 25 30 reset 18 27 26 23 cv in 22 21 20 19 v hold rvco hlf 28 29 address bus 31 14 34 35 36 37 38 39 40 10 9 8 7 41 42 43 44 45 46 47 48 33 13 12 11 17 16 15 6 5 4 3 49 50 51 52 2 1 i/o ports p3 0 , p3 1 i/o port p1 i/o port p2 i/o port p0 input ports p4 0 ?4 6 output port p5 sync signal input int3 32
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 4 71 0.5 m s (the minimum instruction execution time, at 8 mhz oscillation fre- quency) 8 mhz (maximum) 60 k bytes 1024 bytes 14464 bytes 1920 bytes 7-bit 5 1 (n-channel open-drain output structure, can be used as pwm output pins) 1-bit 5 1 (cmos input/output structure) 4-bit 5 1 (cmos input/output structure, can be used as osd output pin, int input pin, serial input pin) 4-bit 5 1 (n-channel open-drain output structure, can be used as multi- master i 2 c-bus interface) 8-bit 5 1 (cmos input/output structure, can be used as a-d input pins) 2-bit 5 1 (cmos input/output structure) 5-bit 5 1 (can be used as a-d input pins, int input pins, external clock input pins) 2-bit 5 1 (n-channel open-drain output structure when serial i/o is used, can be used as serial i/o pins) 4-bit 5 1 (cmos output structure, can be used as osd output) 1-bit 5 1 (can be used as sub-clock input pin, osd clock input pin) 1-bit 5 1 (cmos output structure when lc is oscillating, can be used as sub-clock output pin, osd clock output pin) 8-bit 5 1 1 4 channels (8-bit resolution) 8-bit 5 7 8-bit timer 5 6 128 levels (maximum) 1 external interrupt 5 3, internal timer interrupt 5 6, serial i/o interrupt 5 1, osd interrupt 5 1, multi-master i 2 c-bus interface interrupt 5 1, data slicer interrupt 5 1, f(x in )/4092 interrupt 5 1, v sync interrupt 5 1, a- d conversion interrupt 5 1, brk instruction interrupt 5 1 2 built-in circuits (externally connected a ceramic resonator or a quartz- crystal oscillator) built in parameter functions functions number of basic instructions instruction execution time clock frequency memory size input/output ports serial i/o multi-master i 2 c-bus interface a-d converter pwm output circuit timers subroutine nesting interrupt interval determination circuit interrupt clock generating circuit data slicer rom ram osd rom osd ram p0 0 Cp0 2 , p0 4 Cp0 7 p0 3 p1 0 , p1 5 Cp1 7 p1 1 Cp1 4 p2 p3 0 , p3 1 p4 0 Cp4 4 p4 5 , p4 6 p5 2 Cp5 5 p6 3 p6 4 i/o i/o i/o i/o i/o i/o input input output input input
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 5 5 v 10 % 165 mw typ. (at oscillation frequency f cpu = 8 mhz, f osd = 13 mhz) 82.5 mw typ. (at oscillation frequency f cpu = 8 mhz) 0.33mw typ. (at oscillation frequency f clk = 32 khz, f(x in ) = stopped) 0.055 mw (maximum) C10 c to 70 c cmos silicon gate process 52-pin shrink plastic molded dip number of display characters dot structure kinds of characters kinds of character sizes kinds of character colors display position (horizontal, vertical) functions (continued) osd function power source voltage power dissipation 40 characters 5 16 lines cc mode: 16 5 26 dots (character part : 16 5 20 dots) osd mode: 16 5 20 dots exosd mode: 16 5 26 dots 320 kinds (in exosdmode, they can be combined with 32 kinds of extra fonts) cc mode: 2 kinds osd mode: 14 kinds exosd mode: 6 kinds cc mode: 7 kinds (r, g, b) osd mode: 15 kinds (r, g, b, i1) exosd mode: 7 kinds (r, g, b, i1, i2) 256 levels (horizontal) 5 1024 levels (vertical) data slicer on data slicer off data slicer off in high-speed mode in low-speed mode in stop mode osd on osd off osd off operating temperature range device structure package
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 6 apply voltage of 5 v 10 % (typical) to v cc and av cc , and 0 v to v ss . this is connected to v ss . to enter the reset state, the reset input pin must be kept at a l for 2 m s or more (under normal v cc conditions). if more time is needed for the quartz-crystal oscillator to stabilize, this l condition should be maintained for the required time. this chip has an internal clock generating circuit. to control generating frequency, an external ceramic resonator or a quartz-crystal oscillator is connected between pins x in and x out . if an external clock is used, the clock source should be connected to the x in pin and the x out pin should be left open. port p0 is an 8-bit i/o port with direction register allowing each i/o bit to be individually programmed as input or output. at reset, this port is set to input mode. the output structure of p0 3 is cmos output, that of p0 0 Cp0 2 and p0 4 Cp0 7 are n-channel open-drain output. the note out of this table gives a full of port p0 function. pins p0 0 Cp0 2 and p0 4 Cp0 7 are also used as pwm output pins pwm4Cpwm6 and pwm0C pwm3 respectively. the output structure is n-channel open-drain output. port p1 is an 8-bit i/o port and has basically the same functions as port p0. the output structure of p1 0 and p1 5 Cp1 7 is cmos output, that of p1 1 Cp1 4 is n-channel open-drain output. pins p1 0 , p1 5 , p1 6 are also used as osd output pins out2, i1, i2 respectively. the output structure is cmos output. pins p1 1 Cp1 4 are used as scl1, scl2, sda1 and sda2 respectively, when multi-master i 2 c-bus interface is used. the output structure is n-channel open-drain output. p1 7 pin is also used as serial i/o data input pin s in . port p2 is an 8-bit i/o port and has basically the same functions as port p0. the output structure is cmos output. pins p2 4 Cp2 6 are also used as analog input pins ad3Cad1 respectively. ports p3 0 and p3 1 are a 2-bit i/o port and has basically the same functions as port p0. the output structure is cmos output. ports p4 0 Cp4 6 are a 7-bit input port. p4 0 pin is also used as analog input pin ad4. pins p4 1 , p4 4 are also used as external interrupt input int2, int1. pins p4 2 and p4 3 are also used as external clock input pins tim2, tim3 respectively. p4 5 pin is used as serial i/o data output pin s out . the output structure is n-channel open- drain output. p4 6 pin is used as serial i/o synchronizing clock input/output pin s clk . the output struc- ture is n-channel open-drain output. ports p5 2 Cp5 5 are a 4-bit output port. the output structure is cmos output. pins p5 2 Cp5 5 are also used as osd output pins r, g, b, out1 respectively. pin description pin name name input/ output power source cnv ss reset input clock input clock output i/o port p0 pwm output i/o port p1 osd output multi-master i 2 c-bus interface serial i/o data input i/o port p2 analog input i/o port p3 input port p4 analog input external interrupt input external clock input serial i/o data output serial i/o synchronizing clock input/output output port p5 osd output v cc , av cc , v ss. cnv ss _____ reset x in x out p0 0 /pwm4C p0 2 /pwm6, p0 3, p0 4 /pwm0C p0 7 /pwm3 p1 0 /out2, p1 1 /scl1, p1 2 /scl2, p1 3 /sda1, p1 4 /sda2, p1 5 /i1, p1 6 /i2/int3, p1 7 /s in p2 0 Cp2 3 p2 4 /ad3C p2 6 /ad 1, p2 7 p3 0 , p3 1 p4 0 /ad4, p4 1 /int2, p4 2 /tim2, p4 3 /tim3, p4 4 /int1, p4 5 /s out , p4 6 /s clk , p5 2 /r,p5 3 /g, p5 4 /b, p5 5 /out1 input input output i/o output i/o output output input i/o input i/o input input input input output i/o output output
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 7 input input output output input input input input input input port clock input for osd clock output for osd sub-clock output sub-clock input i/o for data slicer h sync input v sync input pin description (continued) p6 3 /osc1/ x cin , p6 4 /osc2/ x cout cv in v hold rvco hlf h sync v sync ports p6 3 and p6 4 are 2-bit input port. p6 3 pin is also used as osd clock input pin osc1. p6 4 pin is also used as osd clock output pin osc2. the output structure is cmos output. p6 4 pin is also used as sub-clock output pin x cout . the output structure is cmos output. p6 3 pin is also used as sub-clock input pin x cin . input composite video signal through a capacitor. connect a capacitor between v hold and v ss . connect a resistor between rvco and v ss . connect a filter using of a capacitor and a resistor between hlf and v ss . this is a horizontal synchronizing signal input for osd. this is a vertical synchronizing signal input for osd. note : as shown in the memory map (figure 3), port p0 is accessed as a memory at address 00c0 16 of zero page. port p0 has the port p0 direction register (address 00c1 16 of zero page) which can be used to program each bit as an input (0) or an output (1). the pins programmed as 1 in the direction register are output pins. when pins are programmed as 0, they are input pins. when pins are programmed as output pins, the output data are written into the port latch and then output. when data is read from the output pins, the output pin level is not read but the data of the port latch is read. this allows a previously-output value to be read correctly even if the output l voltage has risen, for example, because a light emitting diode was directly driven. the input pins are in the floating state, so the values of the pins can be read. when data is written into the input pin, it is written only into the port latch, while the pin remains in the floating state.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 8 functional description central processing unit (cpu) the m37271mf-xxxsp uses the standard 740 family instruction set. refer to the table of 740 family addressing modes and machine in- structions or the series 740 < software > users manual for details on the instruction set. machine-resident 740 family instructions are as follows: the fst, slw instruction cannot be used. the mul, div, wit and stp instruction can be used. cpu mode register the cpu mode register contains the stack page selection bit and internal system clock selection bit. the cpu mode register is allo- cated at address 00fb 16 . fig. 1. structure of cpu mode register 70 11 0 0 cpu mode register (cpum (cm) : address 00fb 16 ) processor mode bits b1 b0 0 0 : single-chip mode 0 1 : 1 0 : 1 1 : stack page selection bit (note) 0 : zero page 1 : 1 page fix these bits to ?. note: please beware of this bit when programming because it is set to ??after the reset release. x cout drivability selection bit 0 : low drive 1 : high drive main colock (x in ? out ) stop bit 0 : oscillating 1 : stopped internal system clock selection bit 0 : x in ? out selected (high-speed mode) 1 : x cin ? cout selected (low-speed mode) not available
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 9 memory special function register (sfr) area the special function register (sfr) area in the zero page contains control registers such as i/o ports and timers. ram ram is used for data storage and for stack area of subroutine calls and interrupts. rom rom is used for storing user programs as well as the interrupt vector area. ram for osd ram for display is used for specifying the character codes and col- ors to display. rom for osd rom for display is used for storing character data. interrupt vector area the interrupt vector area contains reset and interrupt vectors. zero page the 256 bytes from addresses 0000 16 to 00ff 16 are called the zero page area. the internal ram and the special function registers (sfr) are allocated to this area. the zero page addressing mode can be used to specify memory and register addresses in the zero page area. access to this area with only 2 bytes is possible in the zero page addressing mode. special page the 256 bytes from addresses ff00 16 to ffff 16 are called the spe- cial page area. the special page addressing mode can be used to specify memory addresses in the special page area. access to this area with only 2 bytes is possible in the special page addressing mode. fig. 2. memory map 0000 16 00c0 16 00ff 16 0fff 16 sfr1 area not used ffff 16 ffde 16 ff00 16 0800 16 interrupt vector area not used 10800 16 1ffff 16 special page rom (60 k bytes) ram for osd (note) (1920 bytes) ram (1024 bytes) zero page 0200 16 023f 16 1000 16 sfr2 area 053f 16 not used 0300 16 not used 1567f 16 18000 16 not used 1e43f 16 10000 16 rom for osd (14464 bytes)
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 10 fig. 3. memory map of special function register 1 (sfr1) (1) 0 : 0 immediately after reset : fix this bit to 0 ( do not write 1) : nothing is allocated n sfr1 area (addresses c0 16 to df 16 ) d0 16 d1 16 d2 16 d3 16 d4 16 d5 16 d6 16 d7 16 d8 16 d9 16 da 16 db 16 dc 16 dd 16 de 16 df 16 c0 16 c1 16 c2 16 c3 16 c4 16 c5 16 c6 16 c7 16 c8 16 c9 16 cb 16 cc 16 cd 16 ce 16 cf 16 ca 16 address port p5 (p5) osd control register (oc) horizontal position register (hp) block control register 1 (bc 1 ) port p1 (p1) port p1 direction register (d1) port p3 (p3) port p3 direction register (d3) port p2 (p2) port p2 direction register (d2) register port p0 (p0) port p0 direction register (d0) block control register 2 (bc 2 ) block control register 3 (bc 3 ) block control register 4 (bc 4 ) block control register 5 (bc 5 ) block control register 6 (bc 6 ) block control register 7 (bc 7 ) block control register 13 (bc 13 ) block control register 14 (bc 14 ) block control register 15 (bc 15 ) block control register 16 (bc 16 ) : undefined immediately after reset ? b7 b0 bit allocation state immediately after reset ? 00 16 b7 b0 ? 00 16 ? 00 16 ? ? ? ? ? ? ? ? 0 0 00 0 00 0 0 0 00 0 00 0 ? ? ? ? ? ? ? ? ? ? port p4 (p4) port p4 direction register (d4) osd port control register (pf) port p6 (p6) block control register 8 (bc 8 ) block control register 9 (bc 9 ) block control register 10 (bc 10 ) block control register 11 (bc 11 ) block control register 12 (bc 12 ) ri2 i1 g b out1 out2 0 ? ?? ? ?? ? ? 0 00 0 00 0 ? ?? ? ?? ? ? ? ? ? ? ? ? ? oc6 oc7 oc4 oc5 oc2 oc3 oc0 oc1 00 16 bc 1 1 bc 1 2 bc 1 3 bc 1 4 bc 1 5 bc 1 6 bc 1 7 bc 1 8 bc 2 1 bc 2 2 bc 2 3 bc 2 4 bc 2 5 bc 2 6 bc 2 7 bc 2 8 bc 3 1 bc 3 2 bc 3 3 bc 3 4 bc 3 5 bc 3 6 bc 3 7 bc 3 8 bc 4 1 bc 4 2 bc 4 3 bc 4 4 bc 4 5 bc 4 6 bc 4 7 bc 4 8 bc 5 1 bc 5 2 bc 5 3 bc 5 4 bc 5 5 bc 5 6 bc 5 7 bc 5 8 bc 6 1 bc 6 2 bc 6 3 bc 6 4 bc 6 5 bc 6 6 bc 6 7 bc 6 8 bc 7 1 bc 7 2 bc 7 3 bc 7 4 bc 7 5 bc 7 6 bc 7 7 bc 7 8 bc 8 1 bc 8 2 bc 8 3 bc 8 4 bc 8 5 bc 8 6 bc 8 7 bc 8 8 bc 9 1 bc 9 2 bc 9 3 bc 9 4 bc 9 5 bc 9 6 bc 9 7 bc 9 8 bc 10 1 bc 10 2 bc 10 3 bc 10 4 bc 10 5 bc 10 6 bc 10 7 bc 10 8 bc 11 1 bc 11 2 bc 11 3 bc 11 4 bc 11 5 bc 11 6 bc 11 7 bc 11 8 bc 12 1 bc 12 2 bc 12 3 bc 12 4 bc 12 5 bc 12 6 bc 12 7 bc 12 8 bc 13 1 bc 13 2 bc 13 3 bc 13 4 bc 13 5 bc 13 6 bc 13 7 bc 13 8 bc 14 1 bc 14 2 bc 14 3 bc 14 4 bc 14 5 bc 14 6 bc 14 7 bc 14 8 bc 15 1 bc 15 2 bc 15 3 bc 15 4 bc 15 5 bc 15 6 bc 15 7 bc 15 8 bc 16 1 bc 16 2 bc 16 3 bc 16 4 bc 16 5 bc 16 6 bc 16 7 bc 16 8 hp6 hp7 hp4 hp5 hp2 hp3 hp0 hp1 00 16 ? ? ?? ? ?? ?
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp , m37271efsp single-chip 8-bit cmos microcomputer with closed caption dec oder and on-screen displa y contr oller 11 fig. 4. memory map of special function register 1 (sfr2) (2 ) f0 16 f1 16 f2 16 f3 16 f4 16 f5 16 f6 16 f7 16 f8 16 f9 16 fa 16 fb 16 fc 16 fd 16 fe 16 ff 16 e0 16 e1 16 e2 16 e3 16 e4 16 e5 16 e6 16 e7 16 e8 16 e9 16 eb 16 ec 16 ed 16 ee 16 ef 16 ea 16 data slicer control register 1 (dsc1) data register 3 (cd3) a-d conversion register (ad) a-d control register (adcon) timer 1 (tm1) window register (wn) clock run-in register 1 (cr1) clock run-in register 2 (cr2) data register 1 (cd1) data register 2 (cd2) caption position register (cp) start bit position register (sp) timer 2 (tm2) timer 3 (tm3) timer 4 (tm4) timer mode register 1 (tm1) timer mode register 2 (tm2) i 2 c data shift register (s0) i 2 c control register (s1d) i 2 c clock control register (s2) interrupt request register 1 (ireq1) interrupt request register 2 (ireq2) interrupt control register 1 (icon1) interrupt control register 2 (icon2) clock run-in detect register 1 (crd1) clock run-in detect register 2 (crd2) data register 4 (cd4) cpu mode register (cpum) b7 b0 adin0 adin1 advref adstr adv tm20 tm21 tm22 tm23 tm24 tm10 tm11 tm12 tm13 tm14 cm2 tm1r tm2r tm3r tm4r crtr vscr adr ck0 int1r dsr sior tm1e tm2e tm3e tm4e crte vsce int1e dse sioe int2e tm25 b7 b0 ck0 00 16 ? 0 0 0?0 0 0 ff 16 07 16 ff 16 07 16 0 0 0 000 0 0 0 0 0 000 0 0 1 0 00 0 0 0 0 00 00 0 0 0 0 00 00 0 0 0 0 00 00 0 0 0 0 00 0 11 1 00 0 00 0 1 0 0 1 sync slice register (ssl) data slicer control register 2 (dsc2) i 2 c status register (s1) i 2 c address register (s0d) ? ? ? ? 00 0 0 0 0 0 00 16 ? tm15 tm16 tm17 tm26 tm27 ? sad0 sad1 sad2 sad3 sad4 sad5 sad6 rbw lrb ad0 aas al pin bb trx mst bc0 bc1 bc2 es0 als 10 bit sad bsel0 bsel1 ccr0 ccr1 ccr2 ccr3 ccr4 fast mode ack bit ack 00 16 00 16 00 16 0 0 00 0 1? 0 1msr int2r iicr t56r ade 1mse iice t56e t56s cm0 cm1 cm7 cm5 cm6 dsc20 dsc21 dsc22 dsc25 dsc27 dsc10 dsc11 dsc12 dsc15 dsc17 0 00 0 0 0 1 1 ssl7 1 00 ? ? ? ? ? cp0 cp1 cp2 cp3 cp4 sp0 sp1 sp2 sp3 sp4 sp5 sp6 sp7 00 16 0 00 0 0 0 0 0 wn0 wn1 wn2 wn3 wn4 wn5 crd20 crd21 crd22 crd25 crd27 crd25 crd25 crd25 1 00 1 1 1 1 0 cr21 cr11 0 10 1 00 00 0 00 0 0 0 0 0 crd10 crd11 crd12 crd15 crd17 crd15 crd15 crd15 1 : 1 immediately after reset : fix this bit to 0 ( do not write 1) : nothing is allocated n sfr1 area (addresses e0 16 to ff 16 ) address register : undefined immediately after reset ? bit allocation state immediately after reset : fix this bit to 1 ( do not write 0) 0 : 0 immediately after reset 0
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 12 fig. 5. memory map of special function register 2 (sfr2) (1) 210 16 211 16 212 16 213 16 214 16 215 16 216 16 217 16 218 16 219 16 21a 16 21b 16 21c 16 21d 16 21e 16 21f 16 200 16 201 16 202 16 203 16 204 16 205 16 206 16 207 16 208 16 209 16 20b 16 20c 16 20d 16 20e 16 20f 16 20a 16 pwm mode register 1 (pn) timer 5 (tm5) sync pulse counter register (syc) data slicer control register 3 (dsc3) pwm2 register (pwm2) pwm6 register (pwm6) pwm4 register (pwm4) pwm5 register (pwm5) pwm0 register (pwm0) pwm1 register (pwm1) interrupt interval determination register (ri) interrupt interval determination control register (re) serial i/o mode register (sm) serial i/o register (sio) clock source control register (cs) extra font color register (ec) window h register 1 (wh1) window l register 1 (wh1) window h register 2 (wh2) window l register 2 (wh2) clock run-in detect register (crd3) clock run-in register (cr3) timer 6 (tm6) border color register (fc) b7 b0 syc0 fc2 b7 b0 07 16 ?0 0000 0 ? 00 16 0 ? ? ?0 0 00 ? ?? ?? ? ? ? pwm3 register (pwm3) pwm mode register 2 (pw) raster color register (rc) i/o polarity control register (pc) ? ? ? ? ? ? ? ff 16 ? 00 16 pw0 pw1 pw2 pw3 pw4 pw5 pw6 enable pol syc1 syc2 syc3 syc4 syc5 dsc30 dsc31 dsc32 dsc37 dsc35 re0 re1 re2 re3 re4 re5 int3 pol ad/int3 sel re1 re2 re3 re4 re5 int3 pol ad/int3 sel sm0 re1 re2 re3 sm4 re5 int3 pol ad/int3 sel sm1 sm2 sm3 sm5 pc0 re1 re2 re3 pc4 re5 int3 pol ad/int3 sel pc1 pc2 pc3 pc5 pc6 pc7 re1 re2 re3 re5 int3 pol ad/int3 sel cs0 cs4 cs1 cs2 cs3 cs5 cs6 rc0 re1 re2 re3 rc4 re5 int3 pol ad/int3 sel rc1 rc2 rc3 rc5 rc6 rc7 re1 re2 re3 re5 int3 pol ad/int3 sel fc0 fc1 fc3 fc4 wh20 wh21 wl20 wl21 ? ? ? 0 ? ? ?0 0 00 0 1 0 00 0 00 ??? ?????? ??? ?? ?? ? 0 ? ?? ? ?? ? ? 0 0 0 00 0 00 ? 00 16 dsc36 dsc34 dsc33 ? ?? ?0 ? ? 0 ? 00 00 0 0 0 0 ?? ?? ? ? ? crd31 crd32 crd33 crd34 crd35 0 00 00 0 0 0 1 : 1 immediately after reset : fix this bit to 0 ( do not write 1) : nothing is allocated n sfr2 area (addresses 200 16 to 21f 16 ) address register : undefined immediately after reset ? bit allocation state immediately after reset 0 : 0 immediately after reset
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 13 fig. 6. memory map of special function register 2 (sfr2) (2) 230 16 231 16 232 16 233 16 234 16 235 16 236 16 237 16 238 16 239 16 23a 16 23b 16 23c 16 23d 16 23e 16 23f 16 220 16 221 16 222 16 223 16 224 16 225 16 226 16 227 16 228 16 229 16 22b 16 22c 16 22d 16 22e 16 22f 16 22a 16 vertical position register 1 11 (vp1 11 ) vertical position register 1 16 (vp1 16 ) vertical position register 1 3 (vp1 3 ) vertical position register 1 7 (vp1 7 ) vertical position register 1 5 (vp1 5 ) vertical position register 1 6 (vp1 6 ) vertical position register 1 1 (vp1 1 ) vertical position register 1 2 (vp1 2 ) vertical position register 1 9 (vp1 9 ) vertical position register 1 10 (vp1 10 ) b7 b0 b7 b0 vertical position register 1 4 (vp1 4 ) vertical position register 1 12 (vp1 12 ) ? ? ? ? vp1 1 1 vertical position register 1 8 (vp1 8 ) vertical position register 1 15 (vp1 15 ) vertical position register 2 13 (vp2 13 ) vertical position register 2 14 (vp2 14 ) vertical position register 2 16 (vp2 16 ) vertical position register 2 3 (vp2 3 ) vertical position register 2 7 (vp2 7 ) vertical position register 2 5 (vp2 5 ) vertical position register 2 6 (vp2 6 ) vertical position register 2 1 (vp2 1 ) vertical position register 2 9 (vp2 9 ) vertical position register 2 10 (vp2 10 ) vertical position register 2 4 (vp2 4 ) vertical position register 2 12 (vp2 12 ) vertical position register 2 8 (vp2 8 ) vertical position register 2 15 (vp2 15 ) vertical position register 1 14 (vp1 14 ) vertical position register 1 13 (vp1 13 ) vertical position register 2 2 (vp2 2 ) vertical position register 2 11 (vp2 11 ) vp1 1 2 vp1 1 3 vp1 1 4 vp1 1 5 vp1 1 6 vp1 1 7 vp1 1 8 vp1 2 1 vp1 2 2 vp1 2 3 vp1 2 4 vp1 2 5 vp1 2 6 vp1 2 7 vp1 2 8 vp1 3 1 vp1 3 2 vp1 3 3 vp1 3 4 vp1 3 5 vp1 3 6 vp1 3 7 vp1 3 8 vp1 4 1 vp1 4 2 vp1 4 3 vp1 4 4 vp1 4 5 vp1 4 6 vp1 4 7 vp1 4 8 vp1 5 1 vp1 5 2 vp1 5 3 vp1 5 4 vp1 5 5 vp1 5 6 vp1 5 7 vp1 5 8 vp1 6 1 vp1 6 2 vp1 6 3 vp1 6 4 vp1 6 5 vp1 6 6 vp1 6 7 vp1 6 8 vp1 7 1 vp1 7 2 vp1 7 3 vp1 7 4 vp1 7 5 vp1 7 6 vp1 7 7 vp1 7 8 vp1 8 1 vp1 8 2 vp1 8 3 vp1 8 4 vp1 8 5 vp1 8 6 vp1 8 7 vp1 8 8 vp1 9 1 vp1 9 2 vp1 9 3 vp1 9 4 vp1 9 5 vp1 9 6 vp1 9 7 vp1 9 8 vp1 10 1 vp1 10 2 vp1 10 3 vp1 10 4 vp1 10 5 vp1 10 6 vp1 10 7 vp1 10 8 vp1 11 1 vp1 11 2 vp1 11 3 vp1 11 4 vp1 11 5 vp1 11 6 vp1 11 7 vp1 11 8 vp1 12 1 vp1 12 2 vp1 12 3 vp1 12 4 vp1 12 5 vp1 12 6 vp1 12 7 vp1 12 8 vp1 13 1 vp1 13 2 vp1 13 3 vp1 13 4 vp1 13 5 vp1 13 6 vp1 13 7 vp1 13 8 vp1 14 1 vp1 14 2 vp1 14 3 vp1 14 4 vp1 14 5 vp1 14 6 vp1 14 7 vp1 14 8 vp1 15 1 vp1 15 2 vp1 15 3 vp1 15 4 vp1 15 5 vp1 15 6 vp1 15 7 vp1 15 8 vp1 16 1 vp1 16 2 vp1 16 3 vp1 16 4 vp1 16 5 vp1 16 6 vp1 16 7 vp1 16 8 vp2 1 1 vp2 1 2 vp2 2 1 vp2 2 2 vp2 3 1 vp2 3 2 vp2 4 1 vp2 4 2 vp2 5 1 vp2 5 2 vp2 6 1 vp2 6 2 vp2 7 1 vp2 7 2 vp2 8 1 vp2 8 2 vp2 9 1 vp2 9 2 vp2 10 1 vp2 10 2 vp2 11 1 vp2 11 2 vp2 12 1 vp2 12 2 vp2 13 1 vp2 13 2 vp2 14 1 vp2 14 2 vp2 15 1 vp2 15 2 vp2 16 1 vp2 16 2 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? : nothing is allocated n sfr2 area (addresses 220 16 to 23f 16 ) address register : undefined immediately after reset ? bit allocation state immediately after reset
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 14 fig. 7. internal state of processor status register and program counter at reset b7 b0 b7 b0 1 register processor status register (ps) bit allocation state immediately after reset program counter (pc h ) program counter (pc l ) contents of address ffff 16 contents of address fffe 16 i zc d b t v n?? ? ? ? ? ? : nothing is allocated : ??immediately after reset : undefined immediately after reset 1 ?
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 15 interrupts interrupts can be caused by 18 different sources consisting of 4 ex- ternal, 12 internal, 1 software, and reset. interrupts are vectored in- terrupts with priorities shown in table 1. reset is also included in the table because its operation is similar to an interrupt. when an interrupt is accepted, (1) the contents of the program counter and processor status register are automatically stored into the stack. (2) the interrupt disable flag i is set to 1 and the corresponding interrupt request bit is set to 0. (3) the jump destination address stored in the vector address enters the program counter. other interrupts are disabled when the interrupt disable flag is set to 1. all interrupts except the brk instruction interrupt have an interrupt request bit and an interrupt enable bit. the interrupt request bits are in interrupt request registers 1 and 2 and the interrupt enable bits are in interrupt control registers 1 and 2. figure 8 shows the structure of the interrupt-related registers. interrupts other than the brk instruction interrupt and reset are ac- cepted when the interrupt enable bit is 1, interrupt request bit is 1, and the interrupt disable flag is 0. the interrupt request bit can be set to 0 by a program, but not set to 1. the interrupt enable bit can be set to 0 and 1 by a program. reset is treated as a non-maskable interrupt with the highest priority. figure 9 shows interrupt control. interrupt causes (1) v sync and osd interrupts the v sync interrupt is an interrupt request synchronized with the vertical sync signal. the osd interrupt occurs after character block display to the crt is completed. (2) int1, int2, int3 interrupts with an external interrupt input, the system detects that the level of a pin changes from l to h or from h to l, and generates an interrupt request. the input active edge can be selected by bits 3, 4 and 6 of the interrupt interval determination control reg- ister (address 0212 16 ) : when this bit is 0, a change from l to h is detected; when it is 1, a change from h to l is de- tected. note that all bits are cleared to 0 at reset. (3) timer 1, 2, 3 and 4 interrupts an interrupt is generated by an overflow of timer 1, 2, 3 or 4. (4) serial i/o interrupt this is an interrupt request from the clock synchronous serial i/o function. (5) f(x in )/4096 interrupt this interrupt occurs regularly with a f(x in )/4096 period. set bit 0 of the pwm mode register 1 to 0. (6) data slicer interrupt an interrupt occurs when slicing data is completed. (7) multi-master i 2 c-bus interface interrupt this is an interrupt request related to the multi-master i 2 c-bus interface. (8) a-d conversion interrupt an interrupt occurs at the completion of a-d conversion. since a-d conversion interrupt and the int3 interrupt share the same vector, an interrupt source is selected by bit 7 of the interrupt interval determination control register (address 0212 16 ). vector addresses ffff 16 , fffe 16 fffd 16 , fffc 16 fffb 16 , fffa 16 fff9 16 , fff8 16 fff7 16 , fff6 16 fff5 16 , fff4 16 fff3 16 , fff2 16 fff1 16 , fff0 16 ffef 16 , ffee 16 ffed 16 , ffec 16 ffeb 16 , ffea 16 ffe9 16 , ffe8 16 ffe7 16 , ffe6 16 ffe5 16 , ffe4 16 ffe3 16 , ffe2 16 ffdf 16 , ffde 16 interrupt source reset osd interrupt int1 interrupt data slicer interrupt serial i/o interrupt timer 4 interrupt f(x in )/4096 interrupt v sync interrupt timer 3 interrupt timer 2 interrupt timer 1 interrupt a-d convertion int3 interrupt int2 interrupt multi-master i 2 c-bus interface interrupt timer 5 6 interrupt brk instruction interrupt remarks non-maskable active edge selectable active edge selectable active edge selectable active edge selectable non-maskable (software interrupt) table 1. interrupt vector addresses and priority priority 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 16 (9)timer 5 6 interrupt an interrupt is generated by an overflow of timer 5 or 6. their priorities are same, and can be switched by software. (10)brk instruction interrupt this software interrupt has the least significant priority. it does not have a corresponding interrupt enable bit, and it is not af- fected by the interrupt disable flag i (non-maskable). fig. 8. structure of interrupt-related registers fig. 9. interrupt control interrupt request bit interrupt enable bit interrupt disable flag i brk instruction reset interrupt request 7 interrupt request register 1 (ireq1: address 00fc 16 ) timer 1 interrupt request bit 0 timer 2 interrupt request bit timer 3 interrupt request bit timer 4 interrupt request bit osd interrupt request bit v sync interrupt request bit multi-master i 2 c-bus interface interrupt request bit timer 5 6 interrupt request bit 0 : no interrupt request issued 1 : interrupt request issued 7 interrupt request register 2 (ireq2: address 00fd 16 ) int1 interrupt request bit 0 data slicer interrupt request bit serial i/o interrupt request bit int2 interrupt request bit fix this bit to ?. 0 0 : interrupt disabled 1 : interrupt enabled 7 interrupt control register 2 ( icon2 : address 00ff 16 ) int1 interrupt enable bit 0 data slicer interrupt enable bit serial i/o interrupt enable bit 7 interrupt control register 1 ( icon1: address 00fe 16 ) timer 1 interrupt enable bit 0 timer 2 interrupt enable bit timer 3 interrupt enable bit timer 4 interrupt enable bit osd interrupt enable bit v sync interrupt enable bit f(x in )/4096 interrupt request bit multi-master i 2 c-bus interface enable bit timer 5 6 interrupt enable bit int2 interrupt enable bit timer 5 6 interrupt switch bit f(x in )/4096 interrupt enable bit a-d conversion int3 interrupt request bit 0 : timer 5 1 : timer 6 a-d conversion int3 interrupt request bit
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 17 timers the m37271mf-xxxsp has 6 timers: timer 1, timer 2, timer 3, timer 4, timer 5, and timer 6. all timers are 8-bit timers with the 8-bit timer latch. the timer block diagram is shown in figure 11. all of the timers count down and their divide ratio is 1/(n+1), where n is the value of timer latch. the value is set to a timer at the same time by writing a count value to the corresponding timer latch (addresses 00f0 16 to 00f3 16 : timers 1 to 4, addresses 020c 16 and 020d 16 : timers 5 and 6). the count value is decremented by 1. the timer interrupt request bit is set to 1 by a timer overflow at the next count pulse after the count value reaches 00 16 . (1) timer 1 timer 1 can select one of the following count sources: ? f(x in )/16 or f(x cin )/16 ? f(x in )/4096 or f(x cin )/4096 ? external clock from the p4 2 /tim2 pin the count source of timer 1 is selected by setting bits 5 and 0 of the timer mode register 1 (address 00f4 16 ). either f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register. timer 1 interrupt request occurs at timer 1 overflow. (2) timer 2 timer 2 can select one of the following count sources: ? f(x in )/16 or f(x cin )/16 ? timer 1 overflow signal ? external clock from the p4 2 /tim2 pin the count source of timer 2 is selected by setting bits 4 and 1 of the timer mode register 1 (address 00f4 16 ). either f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register. when timer 1 overflow signal is a count source for the timer 2, the timer 1 functions as an 8- bit prescaler. timer 2 interrupt request occurs at timer 2 overflow. (3) timer 3 timer 3 can select one of the following count sources: ? f(x in )/16 or f(x cin )/16 ? f(x cin ) ? external clock from the p4 3 /tim3 pin the count source of timer 3 is selected by setting bit 0 of the timer mode register 2 (address 00f5 16 ) and bit 6 at address 00c7 16 . ei- ther f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register. timer 3 interrupt request occurs at timer 3 overflow. (4) timer 4 timer 4 can select one of the following count sources: ? f(x in )/16 or f(x cin )/16 ? f(x in )/2 or f(x cin )/2 ? f(x cin ) the count source of timer 3 is selected by setting bits 4 and 1 of the timer mode register 2 (address 00f5 16 ). either f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register. when timer 3 overflow signal is a count source for the timer 4, the timer 3 functions as an 8- bit prescaler. timer 4 interrupt request occurs at timer 4 overflow. (5) timer 5 timer 5 can select one of the following count sources: ? f(x in )/16 or f(x cin )/16 ? timer 2 overflow signal ? timer 4 overflow signal the count source of timer 3 is selected by setting bit 6 of the timer mode register 1 (address 00f4 16 ) and bit 7 of the timer mode regis- ter 2 (address 00f5 16 ). either f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register. timer 5 interrupt request occurs at timer 5 overflow. (6) timer 6 timer 6 can select one of the following count sources: ? f(x in )/16 or f(x cin )/16 ? timer 5 overflow signal the count source of timer 6 is selected by setting bit 7 of the timer mode register 1 (address 00f4 16 ). either f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register. when timer 5 overflow signal is a count source for the timer 6, the timer 5 functions as an 8-bit prescaler. timer 6 interrupt request occurs at timer 6 overflow. at reset, timers 3 and 4 are connected by hardware and ff 16 is automatically set in timer 3; 07 16 in timer 4. the f(x in ) ] /16 is se- lected as the timer 3 count source. the internal reset is released by timer 4 overflow at these state, the internal clock is connected. at execution of the stp instruction, timers 3 and 4 are connected by hardware and ff 16 is automatically set in timer 3; 07 16 in timer 4. however, the f(x in ) ] /16 is not selected as the timer 3 count source. so set both bit 0 of the timer mode register 2 (address 00f5 16 ) and bit 6 at address 00c7 16 to 0 before the execution of the stp in- struction (f(x in ) ] /16 is selected as the timer 3 count source). the internal stp state is released by timer 4 overflow at these state, the internal clock is connected. because of this, the program starts with the stable clock. ] : when bit 7 of the cpu mode register (cm 7 ) is 1, f(x in ) be- comes f(x cin ). the structure of timer-related registers is shown in figure 10.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 18 fig. 10. structure of timer-related registers 70 timer mode register 1 (tmr1 : address 00f4 16 ) timer 1 count source selection bit 1 0 : f(x in )/16 or f(x cin )/16 (note) 1 : count source selected by bit 5 of tmr1 timer 2 count source selection bit 1 0 : count source selected by bit 4 of tmr1 1 : external clock from p4 2 /tim2 pin timer 1 count stop bit 0 : count start 1 : count stop timer 2 count stop bit 0 : count start 1 : count stop timer 2 count source selection bit 2 0 : f(x in )/16 or f(x cin )/16 (note) 1 : timer 1 overflow timer 1 count source selection bit 2 0 : f(x in )/4096 or f(x cin )/4096 (note) 1 : external clock from p4 2 /tim2 pin timer 5 count source selection bit 2 0 : timer 2 overflow 1 : timer 4 overflow timer 6 count source selection bit 0 : f(x in )/16 or f(x cin )/16 (note) 1 : timer 5 overflow 70 timer mode register 2 (tmr2 : address 00f5 16 ) timer 3 count stop bit 0 : count start 1 : count stop timer 4 count stop bit 0 : count start 1 : count stop timer 5 count stop bit 0 : count start 1 : count stop timer 6 count stop bit 0 : count start 1 : count stop timer 5 count source selection bit 1 0 : f(x in )/16 or f(x cin )/16 (note) 1 : count source selected by bit 6 of tmr1 timer 3 count source selection bit 0 0 : f(x in )/16 or f(x cin )/16 (note) 1 0 : f(x cin ) 0 1 : 1 1 : (bit 6 at address 00c7 16 ) external clock from p4 3 /tim3 pin timer 4 count source selection bits b4 b1 0 0 : timer 3 overflow 0 1 : f(x in )/16 or f(x cin )/16 (note) 1 0 : f(x in )/2 or f(x cin )/2 (note) 1 1 : f(x cin ) b0 note : either f(x in ) or f(x cin ) is selected by bit 7 of the cpu mode register.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 19 fig. 11. timer block diagram timer 1 (8) 1/4096 1/2 cm7 tmr15 1/8 timer 1 latch (8) 8 8 8 tmr10 tmr12 tmr14 tmr11 tmr13 timer 2 (8) timer 2 latch (8) 8 8 8 timer 3 (8) timer 3 latch (8) 8 8 8 timer 4 (8) timer 4 latch (8) 8 8 8 timer 5 (8) timer 5 latch (8) 8 8 8 timer 6 (8) timer 6 latch (8) 8 8 8 data bus timer 1 interrupt request timer 2 interrupt request timer 3 interrupt request reset stp instruction tmr20 tmr22 tm3el timer 4 interrupt request tmr24 tmr23 tmr21 tmr16 timer 5 interrupt request tmr27 tmr25 timer 6 interrupt request tmr17 tmr26 tmr21 x cin x in p4 2 /tim2 p4 3 /tim3 selection gate : connected to black colored side at reset tmr1 : timer mode register 1 tmr2 : timer mode register 2 tm3el : timer 3 count source switch bit (address 00c7 16 ) cm : cpu mode register notes 1: ??pulse width of external clock inputs tim2 and tim3 needs 4 machine cycles or more. 2: when the external clock source is selected, timers 1, 2, and 3 are counted at a rising edge of input signal. ff 16 07 16 3: in the stop mode or the wait mode, external clock inputs tim2 and tim3 cannot be used.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 20 serial i/o the m37271mf-xxxsp has a built-in serial i/o which can either trans- mit or receive 8-bit data in serial in the clock synchronous mode. the serial i/o block diagram is shown in figure 12. the synchroniz- ing clock i/o pin (s clk ), and data output pin (s out ) also function as port p4, data input pin (s in ) also functions as port p1. bit 2 of the serial i/o mode register (address 0213 16 ) selects whether the synchronizing clock is supplied internally or externally (from the p4 6 /s clk pin). when an internal clock is selected, bits 1 and 0 select whether f(x in ) is divided by 8, 16, 32, or 64. to use p4 5 /s out and p4 6 /s clk pins for serial i/o, set the corresponding bits of the port p4 direction register (address 00c9 16 ) to 0. to use p1 7 /s in pin for serial i/o, set the corresponding bit of the port p1 direction register (address 00c3 16 ) to 0. fig. 12. serial i/o block diagram the operation of the serial i/o function is described below. the func- tion of the serial i/o differs depending on the clock source; external clock or internal clock. 8 serial i/o shift register (8) data bus serial i/o interrupt request selection gate: connect to black colored side at reset. synchronization circuit frequency divider 1/8 1/4 1/16 sm1 sm0 serial i/o counter (8) sm5 : lsb msb s sm2 1/2 x in p1 7 /s in p4 5 /s out p4 6 /s clk 1/2 (address 0214 16 ) x cin 1/2 cm7 1/2 note : when the data is set in the serial i/o register (address 0214 16 ), the register functions as the serial i/o shift register. (note) cm : cpu mode register sm : serial i/o mode register
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 21 fig. 14. structure of serial i/o mode register internal clockthe serial i/o counter is set to 7 during write cycle into the serial i/o register (address 0214 16 ), and transfer clock goes h forcibly. at each falling edge of the transfer clock after the write cycle, serial data is output from the s out pin. transfer direction can be selected by bit 5 of the serial i/o mode register. at each rising edge of the transfer clock, data is input from the s in pin and data in the serial i/o register is shifted 1 bit. after the transfer clock has counted 8 times, the serial i/o counter becomes 0 and the transfer clock stops at h. at this time the inter- rupt request bit is set to 1. external clockwhen an external clock is selected as the clock source, the interrupt request is set to 1 after the transfer clock has counted 8 times. however, transfer operation does not stop, so con- trol the clock externally. use the external clock of 500khz or less with a duty cycle of 50%. the serial i/o timing is shown in figure 13. when using an external clock for transfer, the external clock must be held at h for initializing the serial i/o counter. when switching between an internal clock and an external clock, do not switch during transfer. also, be sure to ini- tialize the serial i/o counter after switching. notes 1: on programming, note that the serial i/o counter is set by writing to the serial i/o register with the bit managing in- structions as seb and clb instructions. 2: when an external clock is used as the synchronizing clock, write transmit data to the serial i/o register at h of the transfer clock input level. fig. 13. serial i/o timing (for lsb first) 7 serial i/o mode register (sm : address 0213 16 ) internal synchronizing clock selection bits b1 b0 0 0 : f(x in )/8 or f(x cin )/8 0 1 : f(x in )/16 or f(x cin )/16 1 0 : f(x in )/32 or f(x cin )/32 1 1 : f(x in )/64 or f(x cin )/64 0 0 synchronizing clock selection bit 0 : external clock 1 : internal clock port function selection bit 0 : p1 1 , p1 3 functions as port 1 : scl1, sda1 port function selection bit 0 : p1 2 , p1 4 functions as port 1 : scl2, sda2 transfer direction selection bit 0 : lsb first 1 : msb first fix these bits to 0 0 synchroninzing clock transfer clock serial i/o register write signal serial i/o output s out d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 (note) serial i/o input s in note : when an internal clock is selected, the s out pin is at high-impedance after transfer is completed. interrupt request bit is set to 1
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 22 pwm output function the m37271mf-xxxsp is equipped with seven 8-bit pwms (pwm0C pwm6). pwm0Cpwm6 have the same circuit structure and an 8-bit resolution with minimum resolution bit width of 4 m s (for f(x in ) = 8 mhz) and repeat period of 1024 m s. figure 15 shows the pwm block diagram. the pwm timing generat- ing circuit applies individual control signals to pwm0Cpwm6 using f(x in ) divided by 2 as a reference signal. (1) data setting when outputting pwm0Cpwm6, set 8-bit output data in the pwmi register (i means 0 to 6; addresses 0200 16 to 0206 16 ). (2) transmitting data from register to pwm circuit data transfer from the 8-bit pwm register to 8-bit pwm circuit is executed at writing data to the register. the signal output from the 8-bit pwm output pin corresponds to the contents of this register. (3) operating of 8-bit pwm the following is the explanation about pwm operation. at first, set the bit 0 of pwm mode register 1 (address 020a 16 ) to 0 (at reset, bit 0 is already set to 0 automatically), so that the pwm count source is supplied. pwm0Cpwm3 are also used as pins p0 4 Cp0 7 , pwm4Cpwm6 are also used as pins p0 0 Cp0 2 , respectively. set the corresponding bits of the port p0 direction register to 1 (output mode). and select each output polarity by bit 3 of the pwm mode register 1 (address 020a 16 ). then, set bits 7 to 0 of the pwm output control register 2 to 1 (pwm output). the pwm waveform is output from the pwm output pins by setting these registers. figure 16 shows the 8-bit pwm timing. one cycle (t) is composed of 256 (2 8 ) segments. the 8 kinds of pulses relative to the weight of each bit (bits 0 to 7) are output inside the circuit during 1 cycle. refer to figure 16 (a). the 8-bit pwm outputs waveform which is the logi- cal sum (or) of pulses corresponding to the contents of bits 0 to 7 of the 8-bit pwm register. several examples are shown in figure 16 (b). 256 kinds of output (h level area: 0/256 to 255/256) are se- lected by changing the contents of the pwm register. a length of entirely h output cannot be output, i.e. 256/256. (4) output after reset at reset, the output of ports p0 0 Cp0 2 and p0 4 Cp0 7 is in the high- impedance state, port p5 0 outputs l, and the contents of the pwm register and the pwm circuit are undefined. note that after reset, the pwm output is undefined until setting the pwm register.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 23 fig. 15. pwm block diagram pn pw p0 d0 : pwm mode register 1 (address 020a 16 ) : pwm mode register 2 (address 020b 16 ) : port p0 register (address 00c0 16 ) : port p0 direction register (address 00c1 16 ) selection gate : connected to black colored side at reset. is as same contents with the others. pwm1 register (address 0201 16 ) pwm2 register (address 0202 16 ) pwm3 register (address 0203 16 ) pwm4 register (address 0204 16 ) pwm5 register (address 0205 16 ) pwm6 register (address 0206 16 ) 1/2 enable x in pwm timing generating circuit data bus pwm0 register (address 0200 16 ) b7 b0 8 8-bit pwm circuit pol p0 4 pw0 d0 4 pwm0 p0 5 pw1 d0 5 pwm1 p0 6 pw2 d0 6 pwm2 p0 7 pw3 d0 7 pwm3 p0 0 pw4 d0 0 pwm4 p0 1 pw5 d0 1 pwm5 p0 2 pw6 d0 2 pwm6 inside of
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 24 fig. 16. 8-bit pwm timing (a) pulses showing the weight of each bit 1 3 5 7 9 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 255 4 12 20 28 36 44 52 60 68 76 84 92 100 108 116 124 132 140 148 156 164 172 180 188 196 204 212 220 228 236 244 252 8 16 48 80 112 144 176 208 240 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 32 96 160 224 64 192 bit 7 2 6 10 14 18 22 26 30 34 38 42 46 50 54 58 62 66 70 74 78 82 86 90 94 98 102 106 110 114 118 122 126 130 134 138 142 146 150 154 158 162 166 170 174 178 182 186 190 194 198 202 206 210 214 218 222 226 230 234 238 242 246 250 254 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 128 bit 0 pwm output t = 4 m s t = 1024 m s f(x in ) = 8 mhz (b) example of 8-bit pwm t 00 16 (0) 01 16 (1) 18 16 (24) ff 16 (255) t = 256 t
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 25 fig. 17. structure of pwm-related registers pwm count source selection bit 0 : count source supply 1 : count source stop pwm output polarity selection bit 0 : positive polarity 1 : negative polarity pwm mode register 1 (pn: address 020a 16 ) p0 4 /pwm0 output selection bit 0 : p0 4 output 1 : pwm0 output p0 5 /pwm1 output selection bit 0 : p0 5 output 1 : pwm1 output p0 6 /pwm2 output selection bit 0 : p0 6 output 1 : pwm2 output p0 7 /pwm3 output selection bit 0 : p0 7 output 1 : pwm3 output 0 7 pwm mode register 2 (pw: address 020b 16 ) p0 0 /pwm4 output selection bit 0 : p0 0 output 1 : pwm4 output p0 1 /pwm5 output selection bit 0 : p0 1 output 1 : pwm5 output p0 2 /pwm6 output selection bit 0 : p0 2 output 1 : pwm6 output fix this bit to ?. 0
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 26 a-d control register (adcon: address 00ef 16 ) a-d conversion completion bit 0 : conversion in purogress 1 : conversion completed analog input pin selection bits b1 b0 0 0 : p2 6 /ad1 0 1 : p2 5 /ad2 1 0 : p2 4 /ad3 1 1 : p4 0 /ad4 v cc connection selection bit 0 : off 1 : on fix this bit to ?. 0 70 a-d converter (1)a-d conversion register (ad) a-d conversion reigister is a read-only register that stores the result of an a-d conversion. this register should not be read during a-d conversion. (2)a-d control register (adcon) the a-d control register controls a-d conversion. bits 1 and 0 of this register select analog input pins. when these pins are not used as anlog input pins, they are used as ordinary i/o pins. bit 3 is the a-d conversion completion bit, a-d conversion is started by writing 0 to this bit. the value of this bit remains at 0 during an a-d conversion, then changes to 1 when the a-d conversion is completed. bit 4 controls connection between the resistor ladder and v cc . when not using the a-d converter, the resistor ladder can be cut off from the internal v cc by setting this bit to 0. this can realize the low- power dissipation. (3)comparison voltage generator (resistor ladder) the voltage generator divides the voltage between v ss and v cc by 256, and outputs the divided voltages to the comparator as the refer- ence voltage v ref . (4)channel selector the channel selector connects an analog input pin selected by bits 1 and 0 of the a-d control register to the comparator. (5)comparator and control circuit the conversion result of the analog input voltage and the reference voltage v ref is stored in the a-d conversion register. the a-d con- version completion bit and a-d conversion interrupt request bit are set to 1 at the completion of a-d conversion. fig. 19. a-d comparator block diagram fig. 18. structure of a-d control register a-d control register (address 00ef 16 ) a-d control circuit data bus switch tree a-d conversion interrupt request resistor ladder compa- rator channel selector a-d conversion register p2 6 /ad1 p2 5 /ad2 p2 4 /ad3 p4 0 /ad4 (address 00ee 16 ) b7 b0 2 8 v ss v cc
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 27 v ref 256 5 (n C 0.5) 1 to 255 00 note: v ref indicates the voltage of internal v cc . fig. 20. changes in a-d conversion register and comparison voltage during a-d conversion (6) conversion method 1 set bit 7 of the interrupt interval determination control register (ad- dress 0212 16 ) to 1 to generate an interrupt request at comple- tion of a-d conversion. 2 set the a-d conversion int3 interrupt request bit to 0 (even when a-d conversion is started, the a-d conversion int3 inter- rupt bit is not set to 0 automatically). 3 when using a-d conversion interrupt, enable interrupts by setting a-d conversion int3 interrupt request bit to 1 and setting the interrupt disable flag to 0. 4 set the v cc connection selection bit to 1 to connect v cc to the resistor ladder. 5 select analog input pins by setting the analog input selection bit of the a-d control register. 6 set the a-d conversion completion bit to 0. this write operation starts the a-d conversion. do not read the a-d conversion regis- ter during the a-d conversion. 7 verify the completion of the conversion by the state (1) of the a-d conversion completion bit, that (1) of a-d conversion int3 interrupt bit, or the occurrence of an a-d conversion interrupt. 8 read the a-d conversion register to obtain the conversion results. note : when the ladder resistor is disconnect from v cc , set the v cc connection selection bit to 0 between steps 7 and 8 . (7) internal operation at the time when the a-d conversion starts, the following operations are automatically performed. 1 the a-d conversion register is set to 00 16 . 2 the most significant bit of the a-d conversion register becomes 1, and the comparison voltage v ref is input to the comparator. at this point, v ref is compared with the analog input voltage v in . 3 bit 7 is determined by the comparison result as follows. when v ref < v in : bit 7 holds 1 when v ref > v in : bit 7 becomes 0 with the above operations, the analog value is converted into a digi- tal value. the a-d conversion terminates in a maximum 50 machine cycles (12.5 m s at f(x in ) = 8 mhz) after it starts, and the conversion result is stored in the a-d conversion register. an a-d conversion interrupt request occurs at the same time of a-d conversion completion, the a-d conversion int3 interrupt request bit becomes 1. the a-d conversion completion bit also becomes 1. table 2. expression for v ref and v ref a-d conversion register contents n (decimal notation) v ref (v) 12 3 456 78 1 0000 000 12 100 000 10 00 00 0 1 123456 7 1 v ref 2 v ref 512 v ref 2 v ref 4 v ref 512 v ref 2 v ref 4 v ref 8 v ref 512 00000 00 0 contents of a-d conversion register reference voltage (v ref ) [v] 0 a-d conversion start 1st comparison start 3rd comparison start 8th comparison start 2nd comparison start digital value corresponding to analog input voltage. a-d conversion completion (8th comparison completion) v ref 2 v ref 4 v ref 8 v ref 512 v ref 256 ....... : value determined by mth (m = 1 to 8) result m .....
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 28 [lsb] [lsb] (8) definition of a-d conversion accuracy the definition of a-d conversion accuracy is described below. 1 relative accuracy zero transition error (v 0t ) the deviation of the input voltage at which a-d conversion output data changes from 0 to 1, from the corresponding ideal a-d conversion characteristics between 0 and v ref . non-linearity error the deviation of the actual a-d conversion characteristics, from the ideal a-d conversion characteristics between v 0 and v 254 . (v 0 C1/2 5 v ref /256) 1lsb v 0t = (v ref C 3/2 5 v ref /256) C v 254 1lsb v fst = non-linearity error = [lsb] [lsb] differential non-linearity error the deviation of the input voltage required to change output data by 1, from the corresponding ideal a-d conversion characteris- tics between 0 and v ref . 2 absolute accuracy absolute accuracy error the deviation of the actual a-d conversion characteristics, from the ideal a-d conversion characteristics between 0 and v ref . v n C (1lsb 5 n + v 0 ) 1lsb [lsb] differential non-linearity error = (v n+1 C v n ) C 1lsb 1lsb absolute accuracy error = 1lsb a with respect to absolute accuracy = 1lsb with respect to relative accuracy = note: the analog input voltage vn at which a-d conversion output data changes from n to n + 1 (n ; 0 to 254) is as follows (refer to figure 18). v 254 C v 0 254 v ref 256 [v] [v] fig. 21. definition of a-d conversion precision full-scale transition error (v fst ) the deviation of the input voltage at which a-d conversion output data changes from 255 to 254, from the corresponding ideal a- d conversion characteristics between 0 and v ref . v n C 1lsb a 5 (n+1/2) 1lsb a output data 0 analog input voltage (v) v 0 v n v n+1 v 254 v ref n n+1 254 255 zero transition error (v 0t ) differential non- linearity error lsb a actual a-d conversion characteristics 1 2 3 2 v 1 1lsb a ideal a-d conversion characteristics between v 0 and v 254 lsb a 1lsb absolute accuracy non-linearity error full-scale transition error (v fst ) 1lsb
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 29 data slicer the m37271mf-xxxsp includes the data slicer function for the closed caption decoder (referred to as the ccd). this function takes out the caption data superimposed in the vertical blanking interval of a composite video signal. a composite video signal which makes the sync chips polarity negative is input to the cv in pin. when the data slicer function is not used, the data slicer circuit can be cut off by setting bit 0 of the data slicer control register 1 (address 00ea 16 ) to 0. also, the timing signal generating circuit can be cut off by setting bit 0 of data slicer control register 2 (address 00eb 16 ) to 0. these settings can realize the low-power dissipation. fig. 22. data slicer block diagram 100 0000101 composite video signal hundred of kiloohms to 1 m w sync pulse counter register (address 020f 16 ) clock run-in register 2 (address 00e7 16 ) data slicer control register 2 (address 00eb 16 ) data slicer control register 1 (address 00ea 16 ) window register (address 00e2 16 ) clock run-in register 1 (address 00e6 16 ) caption position register (address 00e0 16 ) start bit position register (address 00e1 16 ) clock run-in detect register 1 (address 00e8 16 ) clock run-in detect register 2 (address 00e9 16 ) interrupt request generating circuit data slicer interrupt request synchronizing signal counter synchronizing separation circuit sync slice circuit clamping circuit low-pass filter timing signal generating circuit clock run-in determination circuit data slice line specification circuit start bit detecting circuit data clock generating circuit 16-bit shift register data register 1 (address 00e4 16 ) data register 2 (address 00e5 16 ) sync slice register 3 (address 00e3 16 ) data bus comparator 0 1 0111 00 0 000 00 0 10 1 0.1 m f 470 w 560 pf cv in 1 m f 1 k w 200 pf 15 k w h sync hlf rvco + reference voltage generating circuit v hold 1000 pf high-order low-order data slicer on/off data register 4 (address 00ed 16 ) data register 3 (address 00ec 16 ) data slicer control register 3 (address 0210 16 ) clock run-in detect register 3 (address 0208 16 ) clock run-in register 3 (address 0209 16 ) external circuit note: make the length of wiring which is connected to v hold , hlf, rvco and cv in pin as short as possible so that a leakage current may not be generated when mounting a resistor or a capacitor on each pin.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 30 000 0 7 data slicer control register 1 (dsc1: address 00ea 16 ) data slicer control bit 0: data slicer stopped 1: data slicer operating field to be sliced data selection bit fix this bit to ?. data latch completion flag for caption data in main data slice line 0: data is not yet latched 1: data is latched field determination flag 000 0 7 h sep v sep h sep v sep 0 : 1 : field of main data slice line field for setting reference voltage b2 b1 0 0 f2 0 1 f1 1 0 f1 and f2 1 1 f1 and f2 f2 f1 f2 f1 definition of fields 1 (f1) and 2 (f2) h sep v sync v sep f1 : h sep v sync v sep f2 : f2 f1 f2 f1 0 7 data slicer control register 3 (dsc3: address 0210 16 ) line selection bit for slice voltage 0: main data slice line 1: sub-data slice line field of sub-data slice line b2 b1 0 0 f2 0 1 f1 1 0 f1 and f2 1 1 f1 and f2 field to be sliced data selection bit setting bit of sub-data slice line field for setting reference voltage fix these bits to ?. data slicer control register 2 (dsc2: address 00eb 16 ) timing signal generating circuit control bit 0: stopped 1: operating reference clock source selection bit 0: video signal 1: h sync signal test bit: read-only fix these bits to ?. v-pulse shape determination flag 0: match 1: mismatch fix this bit to ?. test bit: read-only figure 23 shows the structure of the data slicer control registers. fig. 23. structure of data slicer control registers
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 31 (1) clamping circuit and low-pass filter this filter attenuates the noise of the composite video signal input from the cv in pin. the cv in pin to which composite video signal is input requires a capacitor (0.1 m f) coupling outside. pull down the cv in pin with a resistor of hundreds of kiloohms to 1 m . in addition, we recommend to install externally a simple low-pass filter using a resistor and a capacitor at the cv in pin (refer to figure 22). (2) sync slice circuit this circuit takes out a composite sync signal from the output signal of the low-pass filter. figure 24 shows the structure of the sync slice register. (3) synchronizing signal separation circuit this circuit separates a horizontal synchronizing signal and a vertical synchronizing signal from the composite sync signal taken out in the sync slice circuit. 1 horizontal synchronizing signal (h sep ) a one-shot horizontal synchronizing signal hsep is generated at the falling edge of the composite sync signal. 2 vertical synchronizing signal (v sep ) as a v sep signal generating method, it is possible to select one of the following 2 methods by using bit 7 of the sync slice register (address 00e3 16 ). ?method 1 the l level width of the composite sync signal is measured. if this width exceeds a certain time, a v sep signal is generated in synchronization with the rising of the timing signal immediately after this l level. ?method 2 the l level width of the composite sync signal is measured. if this width exceeds a certain time, it is detected whether a falling of the composite sync signal exits or not in the l level period of the timing signal immediately after this l level. if a falling exists, a v sep signal is generated in synchronization with the rising of the timing signal (refer to figure 25). figure 25 shows a v sep generating timing. the timing signal shown in the figure is generated from the reference clock which the timing generating circuit outputs. reading bit 5 of data slicer control register 2 permits determinating the shape of the v-pulse portion of the composite sync signal. as shown in figure 26, when the a level matches the b level, this bit is 0. in the case of a mismatch, the bit is 1. for the pins rvco and the hlf, connect a resistor and a capacitor as shown in figure 22. make the length of wiring which is connected to these pins as short as possible so that a leakage current may not be generated. note: it takes a few tens of milliseconds until the reference clock becomes stable after the data slicer and the timing signal generating circuit are started. in this period, various timing signals, h sep signals and v sep signals become unstable. for this reason, take stabilization time into consideration when programming. fig. 24. structure of sync slice register fig. 25. vsep generating timing (method 2) composite sync signal timing signal v sep signal measure ??period a v sep signal is generated at a rising of the timing signal immediately after the ??level width of the composite sync signal exceeds a certain time. 000 0 7 sync slice register (ssl : address 00e3 16 ) fix these bits to ?000101 2 ? vertical synchronizing signal (v sep ) generating method selection bit 0 : method 1 1 : method 2 001 1
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 32 (4) timing signal generating circuit this circuit generates a reference clock which is 832 times as large as the horizontal synchronizing signal frequency. it also generates various timing signals on the basis of the reference clock, horizontal synchronizing signal and vertical synchronizing signal. the circuit operates by setting bit 0 of data slicer control register 2 (address 00eb 16 ) to 1. the reference clock can be used as a display clock for osd function in addition to the data slicer. the h sync signal can be used as a count source instead of the composite sync signal. however, when the h sync signal is selected, the data slicer cannot be used. a count source of the reference clock can be selected by bit 1 of data slicer control register 2 (address 00eb 16 ). fig. 26. determination of v-pulse waveform composite sync signal ab 0 1 1 v-pulse (??pulse width is long, ??pulse width is short) bit 5 of dsc2
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 33 2 selection of field to be sliced data in the case of the main data slice line, the field to be sliced data is selected by bits 2 and 1 of the data slicer control register 1 (address 00ea 16 ). in the case of the sub-data slice line, the field is selected by bits 2 and 1 of the data slicer control register 3. when bit 2 of the data slicer control register 1 is set to 1, it is possible to slice data of both fields (refer to figure 23). 3 specification of line to set slice voltage the reference voltage for slicing (slice voltage) is generated by integrating the amplitude of the clock run-in pulse in the particular line (refer to table 3). 4 field determination the field determination flag can be read out by bit 5 of the data slicer control register 1. this flag charge at the falling edge of v sep . fig. 27. signals in vertical blanking interval (5) data slice line specification circuit 1 specification of data slice line m37271mf-xxxsp has 2 data slice line specification circuits for slicing arbitrary 2 h sep in 1 field. the following 2 data slice lines are specified .
this line is specified by the caption position register (address 00e0 16 ). this line is specified by the data slicer control register 3 (address 00eb 16 ). the counter is reset at the falling edge of v sep and is incremented by 1 every h sep pulse. when the counter value matched the value specified by bits 4 to 0 of the caption position register (in case of the sub-data slice line, by bits 3 to 7 of the data slicer control register 3), this h sep is sliced. the values of 00 16 to 1f 16 can be set in the caption position register. bit 7 to bit 5 are used for testing. set 100 2 . figure 27 shows the signals in the vertical blanking interval. figure 28 shows the structure of the caption position register. line line specified by bits 4 to 0 of cp (main data slice line) line specified by bits 7 to 3 of dsc3 (sub-data slice line) table 3. specifying of field whose sets reference voltage dsc1 : data slice control register 1 dsc3 : data slice control register 3 cp : caption position register field field specified by bit 1 of dsc1 0: f2 1: f1 field specified by bit 1 of dsc3 0: f2 1: f1 bit 0 of dsc3 0 1 video signal vertical blanking interval composite video signal count value to be set in the caption position register (?1 16 ?in this case) h sep v sep h sep magnified drawing clock run-in start bit + 16-bit data start bit time to be set in the start bit position register composite video signal min. max. line 21
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 34 time from the falling of the horizontal synchronizing signal to occurrence of the start bit 4 5 set value of the start bit position register 5 reference clock period << fig. 28. structure of caption position register (6) reference voltage generating circuit and comparator the composite video signal clamped by the clamping circuit is input to the reference voltage generating circuit and the comparator. 1 reference voltage generating circuit this circuit generates a reference voltage (slice voltage) by using the amplitude of the clock run-in pulse in line specified by the data slice line specification circuit. connect a capacitor between the v hold pin and the v ss pin, and make the length of wiring as short as possible so that a leakage current may not be generated. 2 comparator the comparator compares the voltage of the composite video signal with the voltage (reference voltage) generated in the reference voltage generating circuit, and converts the composite video signal into a digital value. (7) start bit detecting circuit this circuit detects a start bit at line decided in the data slice line specification circuit. for start bit detection, it is possible to select one of the following two types by using bit 1 of the clock run-in register 2 (address 00e7 16 ). 1 after the lapse of the time corresponding to the set value of the start bit position register (address 00e1 16 ), the first rising of the composite video signal is detected as a start bit. the time is set in bits 0 to 6 of the start bit position register (address 00e1 16 ) (refer to figure 26). set a value fit for the following conditions. figure 29 shows the structure of the start bit position register. time from the falling of the horizontal synchronizing signal to the last rising of the clock run-in fig. 29. structure of start bit position register caption position register (cp : address 00e0 16 ) specification main data slice line 70 100 fix these bits to ?00 2 70 start bit generating time time from a falling of the horizontal synchronizing signal to occurrence of a start bit = 4 5 set value (?0 16 to ?f 16 ? 5 reference clock period start bit position register (sp : address 00e1 16 ) dsc1 bit 7 control bit 0 : generation of 16 pulses 1 : generation of 16 pulses and detection of clock run-in
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 35 2 after a falling of the clock run-in pulse set in bits 2 to 0 of clock run- in detect register 2 (address 00e9 16 ) is detected, a start bit is detected by sampling a comparator output. a sampling clock for sampling is obtained by dividing the reference clock generated in the timing signal generating circuit by 13. figure 31 shows the structure of clock run-in detect register 2. the contents of bits 2 to 0 of clock run-in detect register 2 and bit 1 of clock run-in register 2 are written at a falling of the horizontal synchronizing signal. for this reason, even if an instruction for setting is executed, the contents of the register cannot be rewritten until a falling of the horizontal synchronizing signal. fig. 30. structure of clock run-in register 2 (8) clock run-in determination circuit this circuit sets a window in the clock run-in portion in the composite video signal, and then determinates clock run-in by counting the number of pulses in this window. set the time from a falling of the horizontal synchronizing signal to a start of the window by bits 0 to 5 of the window register (address 00e2 16 ; refer to figure 32). the window ends according to the contents of the setting of the start bit position register (refer to figure 29). fig. 32. structure of window register 70 1 start bit detecting method selection bit 0 : method 1 1 : method 2 clock run-in register 2 (cr2 : address 00e7 16 ) fix this bit to ?? fix these bits to ?00111 2 00111 1 fig. 31. structure of clock run-in detect register 2 70 window start time time from a falling of the horizontal synchronizing signal to a start of the window = 4 5 set value (?0 16 ?to ?f 16 ? 5 reference clock period window register (wn : address 00e2 16 ) fix these bits to ? 00 70 clock run-in pulses for sampling b2 b1 b0 0 0 0 : not available 0 0 1 : 1st pulse 0 1 0 : 2nd pulse 0 1 1 : 3rd pulse 1 0 0 : 4th pulse 1 0 1 : 5th pulse 1 1 0 : 6th pulse 1 1 1 : 7th pulse clock run-in detect register 2 (crd2 : address 00e9 16 ) data clock generating time time from detection of a start bit to occurrence of a data clock = (13 + set value) 5 reference clock period
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 36 fig. 33. structure of clock run-in register 1 fig. 36. structure of clock run-in detect registers 1and 3 fig. 35. window setting fig. 34. structure of clock run-in register 3 for the main data slice line, the count value of pulses in the window is stored in clock run-in register 1 (address 00e6 16 ; refer to figure 33). for the sub-data slice line, the count value of pulses in the window is stored in clock run-in register 3 (address 0209 16 ; refer to figure 34). when this count value is 4 to 6, it is determined as a clock run-in. accordingly, set the count value so that the window may start after the first pulse of the clock run-in (refer to figure 35). the contents to be set in the window register are written at a falling of the horizontal synchronizing signal. for this reason, even if an instruction for setting is executed, the contents of the register cannot be rewritten until a falling of the horizontal synchronizing signal. for the main data slice line, reference clock is counted in the period from a falling of the clock pulse set in bits 0 to 2 of the clock run-in detect register 2 (address 00e9 16 ) to the next falling. the count value is stored in bits 3 to 7 of the clock run-in detect register 1 (address 00e8 16 ) (when the count value exceeds 1f 16 , 1f 16 is held). for the sub-data slice line, the count value is stored in bits 3 to 7 of the clock run-in detect register 3 (address 0208 16 ). read out these bits after the occurence of a data slicer interrupt (refer to (11) interrupt request generating circuit). figure 36 shows the structure of clock run-in detect registers 1 and 3. 70 clock run-in count value of sub-data slice line clock run-in register 3 (cr3 : address 0209 16 ) data latch completion flag for caption data in sub-data slice line 0: data is not latched yet 1: data is latched data slice line selection bit for interrupt request 0: main data slice line 1: sub-data slice line interrupt mode selection bit 0: interrupt occurs at end of data slice line 1: interrupt occurs at completion of caption data latch ] when the count value in the window is 4 to 6, this is determined as a clock run-in. horizontal synchronizing signal composite video signal window clock run-in start bit data + 16-bit data time to be set in the window register time to be set in the start bit position register 70 number of reference clocks to be counted in one clock run-in pulse period clock run-in detect registers 1, 3 ( crd1 : address 00e8 16 ) ( crd3 : address 0208 16 ) test bits : read-only 70 clock run-in count value of main-data slice line clock run-in register 1 (cr1 : address 00e6 16 ) fix these bits to ?101 2 010 1
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 37 conditions for setting bit 4 of dsc3 to 1 data clock of 16 pulses has occured in sub-data slaice line data clock of 16 pulses has occured in sub-data slaice line and clock run-in pulse are detected 4 to 6 times (10) 16-bit shift register the caption data converted into a digital value by the comparator is stored into the 16-bit shift register in synchronization with the data clock. for the main data slice line, the contents of the high-order 8 bits of the stored caption data and the contents of the low-order 8 bits of the same data can be obtained by reading out the data register 2 (address 00e5 16 ) and data register 1 (address 00e4 16 ), respectively. for the sub-data slice line, the contents of the high-order 8 bits and the contents of the low-order 8 bits can be obtained by reading out the data register 4 (address 00ed 16 ) and the data register 3 (address 00ec 16 ), respectively. these registers are reset to 0 at a falling of v sep . read out data registers 1 and 2 after the occurence of a data slicer interrupt (refer to (11) interrupt request generating circuit). (11) interrupt request generating circuit the occurence sources of interrupt request are selected by combination of the following bits; bits 5 and 6 of the clock run-in register 3 (address 0209 16 ), bit 1 of the clock run-in register 2 (address 00e7 16 ) (refer to table 6). read out the contents of data registers 1 to 4 and the contents of bits 3 to 7 of the clock run-in detect registers 1 and 3 after the occurence of a data slicer interrupt request. for a data clock, 16 pulses are generated. when just 16 pulses have been generated, bit 7 of the data slicer control register is set to 1 (refer to figure 23). when method 1 is already selected as a start bit detecting method, this bit becomes a logical product (and) value with a clock run-in determination result by setting bit 7 of the start bit position register to 1. when method 2 is already selected as a start bit detecting method and 16 pulses are generated of a data clock regardless of bit 7 of the start bit position register, this bit is set to 1. the contents of this bit are reset at a falling of the vertical synchronizing signal (v sep ). table 4. setting conditions for caption data latch completion flag bit 7 of sp 0 1 conditions for setting bit 7 of dsc1 to 1 data clock of 16 pulses has occured in main data slaice line data clock of 16 pulses has occured in main data slaice line and clock run-in pulse are detected 4 to 6 times (9) data clock generating circuit this circuit generates a data clock phase-synchronized with the start bit detected in the start bit detecting circuit. set the time from detection of the start bit to occurrence of the data clock in bits 3 to 7 of the clock run-in detect register 2 (address 00e9 16 ). the time to be set is represented by the following expression: time = (13 + set value) 5 reference clock period slice line main data slice line sub-data slice line b5 0 1 sources at end of data slice line data clock of 16 pulses has occured and clock run-in pulse are detected 4 to 6 times data clock of 16 pulses has occured at end of data slice line data clock of 16 pulses has occured and clock run-in pulse are detected 4 to 6 times data clock of 16 pulses has occured b6 0 1 0 1 cr2 b1 0 1 0 1 0 1 0 1 cr3 table 5. occurence sources of interrupt request occurence souces of interrupt request
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 38 fig. 37. sync pulse counter register sync pulse counter register (syc : address 020f 16 ) count value count source count time 0: h sync signal 1: composite sync signal f(x in )/2 13 (1024 m s, f(x in ) = 8 mhz) 70 (12) synchronizing signal counter the synchronizing signal counter counts the composite sync signal taken out from a video signal in the data slicer circuit or the vertical synchronizing signal v sep as a count source. the count value in a certain time (t time) generated by f(x in )/2 13 or f(x in )/2 13 is stored into the 5-bit latch. accordingly, the latch value changes in the cycle of t time. when the count value exceeds 1f 16 , 1f 16 is stored into the latch. the latch value can be obtained by reading out the sync pulse counter register (address 020f 16 ). a count source is selected by bit 5 of the sync pulse counter register. the synchronizing signal counter is used when bit 0 of the pwm mode register 1 (address 02ea 16 ). figure 37 shows the structure of the sync pulse counter and figure 38 shows the synchronizing signal counter block diagram. fig. 38. synchronizing signal counter block diagram reset 5-bit counter latch (5 bits) f(x in )/2 13 composite sync signal h sync signal counter sync pulse counter register data bus selection gate : connected to black colored side when reset. b5
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 39 function in conformity with philips i 2 c-bus standard: 10-bit addressing format 7-bit addressing format high-speed clock mode standard clock mode in conformity with philips i 2 c-bus standard: master transmission master reception slave transmission slave reception 16.1 khz to 400 khz (at f = 4 mhz) table 6. multi-master i 2 c-bus interface functions item format communication mode scl clock frequency f : system clock = f(x in )/2 note: we are not responsible for any third partys infringement of patent rights or other rights attributable to the use of the con- trol function (bits 6 and 7 of the i 2 c control register at address 00f9 16 ) for connections between the i 2 c-bus interface and ports (scl1, scl2, sda1, sda2). multi-master i 2 c-bus interface the multi-master i 2 c-bus interface is a circuit for serial communica- tions conformed with the philips i 2 c-bus data transfer format. this interface, having an arbitration lost detection function and a synchro- nous function, is useful for serial communications of the multi-mas- ter. figure 39 shows a block diagram of the multi-master i 2 c-bus inter- face and table 6 shows multi-master i 2 c-bus interface functions. this multi-master i 2 c-bus interface consists of the i 2 c address reg- ister, the i 2 c data shift register, the i 2 c clock control register, the i 2 c control register, the i 2 c status register and other control circuits. fig. 39. block diagram of multi-master i 2 c-bus interface i c address register b7 b0 sad6 sad5 sad4 sad3 sad2 sad1 sad0 rbw noise elimination circuit serial data (sda) address comparator b7 i c data shift register b0 data control circuit i c clock control register system clock ( f ) interrupt generating circuit interrupt request signal (iicirq) b7 mst trx bb pin al aas ad0 lrb b0 i c status register s1 b7 b0 bsel1 bsel0 10bit sad als bc2 bc1 bc0 s1d i c clock control register bit counter bb circuit clock control circuit noise elimination circuit serial clock (scl) b7 b0 ack ack bit fast mode ccr4 ccr3 ccr2 ccr1 ccr0 internal data bus clock division s 0 s2 s0d al circuit es0 2 2 2 2 2
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 40 (1) i 2 c data shift register the i 2 c data shift register (s0 : address 00f6 16 ) is an 8-bit shift register to store receive data and write transmit data. when transmit data is written into this register, it is transferred to the outside from bit 7 in synchronization with the scl clock, and each time one-bit data is output, the data of this register are shifted one bit to the left. when data is received, it is input to this register from bit 0 in synchronization with the scl clock, and each time one-bit data is input, the data of this register are shifted one bit to the left. the i 2 c data shift register is in a write enable status only when the es0 bit of the i 2 c control register (address 00f9 16 ) is 1. the bit counter is reset by a write instruction to the i 2 c data shift register. when both the es0 bit and the mst bit of the i 2 c status register (address 00f8 16 ) are 1, the scl is output by a write instruction to the i 2 c data shift register. reading data from the i 2 c data shift regis- ter is always enabled regardless of the es0 bit value. note: to write data into the i 2 c data shift register after setting the mst bit to 0 (slave mode), keep an interval of 8 machine cycles or more. (2) i 2 c address register the i 2 c address register (address 00f7 16 ) consists of a 7-bit slave ___ address and a read /write bit. in the addressing mode, the slave ad- dress written in this register is compared with the address data to be received immediately after the start condition are detected. ____ n bit 0: read /write bit (rbw) not used in the 7-bit addressing mode. in the 10-bit addressing mode, the first address data to be received is compared with the contents (sad6 to sad0 + rbw) of the i 2 c address register. the rbw bit is cleared to 0 automatically when the stop condition is detected. n bits 1 to 7: slave address (sad0Csad6) these bits store slave addresses. regardless of the 7-bit address- ing mode and the 10-bit addressing mode, the address data trans- mitted from the master is compared with the contents of these bits. (3) i 2 c clock control register the i 2 c clock control register (address 00fa 16 ) is used to set ack control, scl mode and scl frequency. n bits 0 to 4: scl frequency control bits (ccr0Cccr4) these bits control the scl frequency. refer to table 7. n bit 5: scl mode specification bit (fast mode) this bit specifies the scl mode. when this bit is set to 0, the stan- dard clock mode is set. when the bit is set to 1, the high-speed clock mode is set. n bit 6: ack bit (ack bit) this bit sets the sda status when an ack clock ] is generated. when this bit is set to 0, the ack return mode is set and make sda l at the occurrence of an ack clock. when the bit is set to 1, the ack non-return mode is set. the sda is held in the h status at the oc- currence of an ack clock. however, when the slave address matches the address data in the reception of address data at ack bit = 0, the sda is automatically made l (ack is returned). if there is a mismatch between the slave address and the address data, the sda is automatically made h(ack is not returned). ] ack clock: clock for acknowledgement n bit 7: ack clock bit (ack) this bit specifies a mode of acknowledgment which is an acknowl- edgment response of data transmission. when this bit is set to 0, the no ack clock mode is set. in this case, no ack clock occurs after data transmission. when the bit is set to 1, the ack clock mode is set and the master generates an ack clock upon comple- tion of each 1-byte data transmission.the device for transmitting address data and control data releases the sda at the occurrence of an ack clock (make sda h) and receives the ack bit generated by the data receiving device. note: do not write data into the i 2 c clock control register during transmitting. if data is written during transmitting, the i 2 c clock generator is reset, so that data cannot be transmitted nor- mally. fig. 40. structure of i 2 c address register sad6 sad5 sad4 sad3 sad2 sad1 sad0 rbw slave address i 2 c address register (s0d: address 00f7 16 ) read/write bit 70
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 41 table 7. set values of i 2 c clock control register and scl frequency (4) i 2 c control register the i 2 c control register (address 00f9 16 ) controls data communica- tion format. n bits 0 to 2: bit counter (bc0Cbc2) these bits decide the number of bits for the next 1-byte data to be transmitted. an interrupt request signal occurs immediately after the number of bits specified with these bits are transmitted. when a start condition is received, these bits become 000 2 and the address data is always transmitted and received in 8 bits. n bit 3: i 2 c interface use enable bit (es0) this bit enables to use the multimaster i 2 c bus interface. when this bit is set to 0, the use disable status is provided, so the sda and the scl become high-impedance. when the bit is set to 1, use of the interface is enabled. when es0 = 0, the following is performed. ? pin = 1, bb = 0 and al = 0 are set (they are bits of the i 2 c status register at address 00f8 16 ). ? writing data to the i 2 c data shift register (address 00f6 16 ) is dis- abled. n bit 4: data format selection bit (als) this bit decides whether or not to recognize slave addresses. when this bit is set to 0, the addressing format is selected, so that ad- dress data is recognized. when a match is found between a slave address and address data as a result of comparison or when a gen- eral call (refer to (5) i 2 c status register, bit 1) is received, trans- mission processing can be performed. when this bit is set to 1, the free data format is selected, so that slave addresses are not recog- nized. n bit 5: addressing format selection bit (10bit sad) this bit selects a slave address specification format. when this bit is set to 0, the 7-bit addressing format is selected. in this case, only the high-order 7 bits (slave address) of the i 2 c address register (ad- dress 00f7 16 ) are compared with address data. when this bit is set to 1, the 10-bit addressing format is selected, all the bits of the i 2 c address register are compared with address data. n bits 6 and 7: connection control bits between i 2 c-bus interface and ports (bsel0, bsel1) these bits controls the connection between scl and ports or sda and ports (refer to figure 42). fig. 41. structure of i 2 c clock control register ack ack bit fast mode ccr4 ccr3 ccr2 ccr1 ccr0 i 2 c clock control register (s2 : address 00fa 16 ) 70 scl frequency control bits refer to table 7. scl mode specification bit 0 : standard clock mode 1 : high-speed clock mode ack bit 0 : ack is returned. 1 : ack is not returned. ack clock bit 0 : no ack clock 1 : ack clock scl frequency (at f = 4mhz, unit : khz) setting value of ccr4Cccr0 standard clock mode setting disabled setting disabled setting disabled setting disabled setting disabled 100 83.3 500/ccr value 17.2 16.6 16.1 high-speed clock mode setting disabled setting disabled setting disabled 333 250 400(note) 166 1000/ccr value 34.5 33.3 32.3 ccr4 0 0 0 0 0 0 0 1 1 1 ccr3 0 0 0 0 0 0 0 1 1 1 ccr2 0 0 0 0 1 1 1 1 1 1 ccr1 0 0 1 1 0 0 1 0 1 1 ccr0 0 1 0 1 0 1 0 1 0 1 note: at 400 khz in the high-speed clock mode, the duty is 40%. in the other cases, the duty is 50%.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 42 fig. 43. structure of i 2 c control register 7 bsel1 bsel0 10 bit sad als es0 bc2 bc1 bc0 0 connection control bits between i 2 c-bus interface and ports b7 b6 connection port 0 0 : none 0 1 : scl1, sda1 1 0 : scl2, sda2 1 1 : scl1, sda1, scl2, sda2 i 2 c control register (s1d : address 00f9 16 ) bit counter (number of transmit/receive bits) b2 b1 b0 0 0 0 : 8 0 0 1 : 7 0 1 0 : 6 0 1 1 : 5 1 0 0 : 4 1 0 1 : 3 1 1 0 : 2 1 1 1 : 1 i 2 c-bus interface use enable bit 0 : disabled 1 : enabled data format selection bit 0 : addressing format 1 : free data format addressing format selection bit 0 : 7-bit addressing format 1 : 10-bit addressing format (5) i 2 c status register the i 2 c status register (address 00f8 16 ) controls the i 2 c-bus inter- face status. the low-order 4 bits are read-only bits and the high- order 4 bits can be read out and written to. n bit 0: last receive bit (lrb) this bit stores the last bit value of received data and can also be used for ack receive confirmation. if ack is returned when an ack clock occurs, the lrb bit is set to 0. if ack is not returned, this bit is set to 1. except in the ack mode, the last bit value of received data is input. the state of this bit is changed from 1 to 0 by execut- ing a write instruction to the i 2 c data shift register (address 00f6 16 ). n bit 1: general call detecting flag (ad0) this bit is set to 1 when a general call ] whose address data is all 0 is received in the slave mode. by a general call of the master device, every slave device receives control data after the general call. the ad0 bit is set to 0 by detecting the stop condition or start con- dition. ] general call: the master transmits the general call address 00 16 to all slaves. n bit 2: slave address comparison flag (aas) this flag indicates a comparison result of address data. 1 in the slave receive mode, when the 7-bit addressing format is selected, this bit is set to 1 in one of the following conditions. ? the address data immediately after occurrence of a start condition agrees with the slave address stored in the high-order 7 bits of the i 2 c address register (address 00f7 16 ). ? a general call is received. 2 in the slave reception mode, when the 10-bit addressing format is selected, this bit is set to 1 with the following condition. ? when the address data is compared with the i 2 c address register (8 bits consisted of slave address and rbw), the first bytes agree. 3 the state of this bit is changed from 1 to 0 by executing a write instruction to the i 2 c data shift register (address 00f6 16 ). fig. 42. connection port control by bsel0 and bsel1 ? ??bsel0 scl1/p1 1 scl2/p1 2 ? ??bsel1 ? ??bsel0 sda1/p1 3 sda2/p1 4 ? ??bsel1 multi-master i 2 c-bus interface scl sda note: when using multi-master i 2 c-bus interface, set bits 3 and 4 of the serial i/o mode register (address 0213 16 ) to 1.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 43 n bit 3: arbitration lost ] detecting flag (al) in the master transmission mode, when the sda is made l by any other device, arbitration is judged to have been lost, so that this bit is set to 1. at the same time, the trx bit is set to 0, so that immedi- ately after transmission of the byte whose arbitration was lost is com- pleted, the mst bit is set to 0. in the case arbitration is lost during slave address transmission, the trx bit is set to 0 and the recep- tion mode is set. consequently, it becomes possible to receive and recognize its own slave address transmitted by another master de- vice. ] arbitration lost: the status in which communication as a master is disabled. n bit 4: i 2 c-bus interface interrupt request bit (pin) this bit generates an interrupt request signal. each time 1-byte data is transmitted, the state of the pin bit changes from 1 to 0. at the same time, an interrupt request signal occurs to the cpu. the pin bit is set to 0 in synchronization with a falling of the last clock (in- cluding the ack clock) of an internal clock and an interrupt request signal occurs in synchronization with a falling of the pin bit. when the pin bit is 0, the scl is kept in the 0 state and clock generation is disabled. figure 45 shows an interrupt request signal generating timing chart. the pin bit is set to 1 in one of the following conditions. ? executing a write instruction to the i 2 c data shift register (address 00f6 16 ). ? when the es0 bit is 0 ? at reset the conditions in which the pin bit is set to 0 are shown below: ? immediately after completion of 1-byte data transmission (includ- ing when arbitration lost is detected) ? immediately after completion of 1-byte data reception ? in the slave reception mode, with als = 0 and immediately after completion of slave address or general call address reception ? in the slave reception mode, with als = 1 and immediately after completion of address data reception n bit 5: bus busy flag (bb) this bit indicates the status of use of the bus system. when this bit is set to 0, this bus system is not busy and a start condition can be generated. when this bit is set to 1, this bus system is busy and the occurrence of a start condition is disabled by the start condi- tion duplication prevention function (note). this flag can be written by software only in the master transmission mode. in the other modes, this bit is set to 1 by detecting a start condition and set to 0 by detecting a stop condition. when the es0 bit of the i 2 c control register (address 00f9 16 ) is 0 and at reset, the bb flag is kept in the 0 state. n bit 6: communication mode specification bit (transfer direction specification bit: trx) this bit decides a direction of transfer for data communication. when this bit is 0, the reception mode is selected and the data of a trans- mitting device is received. when the bit is 1, the transmission mode is selected and address data and control data are output onto the sda in synchronization with the clock generated on the scl. when the als bit of the i 2 c control register (address 00f9 16 ) is 0 in the slave reception mode is selected, the trx bit is set to 1 __ (transmit) if the least significant bit (r/w bit) of the address data trans- __ mitted by the master is 1. when the als bit is 0 and the r/w bit is 0, the trx bit is cleared to 0 (receive). the trx bit is cleared to 0 in one of the following conditions. ? when arbitration lost is detected. ? when a stop condition is detected. ? when occurence of a start condition is disabled by the start condition duplication preventing function (note). ? with mst = 0 and when a start condition is detected. ? with mst = 0 and when ack non-return is detected. ? at reset n bit 7: communication mode specification bit (master/slave speci- fication bit: mst) this bit is used for master/slave specification for data communica- tion. when this bit is 0, the slave is specified, so that a start condition and a stop condition generated by the master are re- ceived, and data communication is performed in synchronization with the clock generated by the master. when this bit is 1, the master is specified and a start condition and a stop condition are gener- ated, and also the clocks required for data communication are gen- erated on the scl. the mst bit is cleared to 0 in one of the following conditions. ? immediately after completion of 1-byte data transmission when ar- bitration lost is detected ? when a stop condition is detected. ? when occurence of a start condition is disabled by the start condition duplication preventing function (note). ? at reset note: the start condition duplication prevention function disables the occurence of a start condition, reset of bit counter and scl output when the following condition is satisfied: ? a start condition is set by another master device.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 44 7 mst 0 i 2 c status register (s1 : address 00f8 16 ) last receive bit (note) 0 : last bit = ?? 1 : last bit = ?? general call detecting flag (note) 0 : no general call detected 1 : general call detected slave address comparison flag (note) 0 : address disagreement 1 : address agreement arbitration lost detecting flag (note) 0 : not detected 1 : detected i 2 c-bus interface interrupt request bit 0 : interrupt request issued 1 : no interrupt request issued bus busy flag 0 : bus free 1 : bus busy communication mode specification bits 00 : slave receive mode 01 : slave transmit mode 10 : master receive mode 11 : master transmit mode trx bb pin al aas ad0 lrb note: these bit and flags can be read out but cannot be written. (6) start condition generating method when the es0 bit of the i 2 c control register (address 00f9 16 ) is 1, execute a write instruction to the i 2 c status register (address 00f8 16 ) for setting the mst, trx and bb bits to 1. then a start condi- tion occurs. after that, the bit counter becomes 000 2 and an scl for 1 byte is output. the start condition generating timing and bb bit set timing are different in the standard clock mode and the high- speed clock mode. refer to figure 46, the start condition generat- ing timing diagram, and table 8, the start condition/stop condi- tion generating timing table. (7) stop condition generating method when the es0 bit of the i 2 c control register (address 00f9 16 ) is 1, execute a write instruction to the i 2 c status register (address 00f8 16 ) for setting the mst bit and the trx bit to 1 and the bb bit to 0. then a stop condition occurs. the stop condition generating tim- ing and the bb flag reset timing are different in the standard clock mode and the high-speed clock mode. refer to figure 47, the stop condition generating timing diagram, and table 8, the start condi- tion/stop condition generating timing table. table 8. start condition/stop condition generating timing table fig. 46. start condition generating timing diagram fig. 47. stop condition generating timing diagram fig. 45. interrupt request signal generating timing fig. 44. structure of i 2 c status register scl pin iicirq i 2 c status register write signal set time for bb flag aaa hold time setup time scl sda bb flag setup time i 2 c status register write signal reset time for bb flag aaa aaa hold time setup time scl sda bb flag item setup time hold time set/reset time for bb flag standard clock mode 5.0 m s (20 cycles) 5.0 m s (20 cycles) 3.0 m s (12 cycles) high-speed clock mode 2.5 m s (10 cycles) 2.5 m s (10 cycles) 1.5 m s (6 cycles) note: absolute time at f = 4 mhz. the value in parentheses de- notes the number of f cycles.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 45 fig. 48. start condition/stop condition detecting timing diagram (8) start/stop condition detecting condi- tions the start/stop condition detecting conditions are shown in fig- ure 48 and table 9. only when the 3 conditions of table 9 are satis- fied, a start/stop condition can be detected. note: when a stop condition is detected in the slave mode (mst = 0), an interrupt request signal iicirq occurs to the cpu. (9) address data communication there are two address data communication formats, namely, 7-bit addressing format and 10-bit addressing format. the respective ad- dress communication formats is described below. 1 7-bit addressing format to meet the 7-bit addressing format, set the 10bit sad bit of the i 2 c control register (address 00f9 16 ) to 0. the first 7-bit address data transmitted from the master is compared with the high-order 7-bit slave address stored in the i 2 c address register (address 00f7 16 ). at the time of this comparison, address comparison of the rbw bit of the i 2 c address register (address 00f7 16 ) is not made. for the data transmission format when the 7-bit address- ing format is selected, refer to figure 49, (1) and (2). 2 10-bit addressing format to meet the 10-bit addressing format, set the 10bit sad bit of the i 2 c control register (address 00f9 16 ) to 1. an address compari- son is made between the first-byte address data transmitted from the master and the 7-bit slave address stored in the i 2 c address register (address 00f7 16 ). at the time of this comparison, an ad- dress comparison between the rbw bit of the i 2 c address regis- __ ter (address 00f7 16 ) and the r/w bit which is the last bit of the address data transmitted from the master is made. in the 10-bit __ addressing mode, the r/w bit which is the last bit of the address data not only specifies the direction of communication for control data but also is processed as an address data bit. aaa aaa hold time setup time scl sda (start condition) sda (stop condition) scl release time aaa aaa hold time setup time standard clock mode 6.5 m s (26 cycles) < scl release time 3.25 m s (13 cycles) < setup time 3.25 m s (13 cycles) < hold time high-speed clock mode 1.0 m s (4 cycles) < scl release time 0.5 m s (2 cycles) < setup time 0.5 m s (2 cycles) < hold time table 9. start condition/stop condition detecting conditions note: absolute time at f = 4 mhz. the value in parentheses de- notes the number of f cycles. fig. 49. address data communication format s slave address a data a data a/a p r/w 7 bits ? 1 to 8 bits 1 to 8 bits s slave address a data a data ap 7 bits ? 1 to 8 bits 1 to 8 bits (1) a master-transmitter transmits data to a slave-receiver s slave address 1st 7 bits a a data 7 bits ? 8 bits 1 to 8 bits (2) a master-receiver receives data from a slave-transmitter slave address 2nd byte a data a/a p 1 to 8 bits s slave address 1st 7 bits a a 7 bits ? 8 bits 7 bits (3) a master-transmitter transmits data to a slave-receiver with a 10-bit address slave address 2nd byte data 1 to 8 bits sr slave address 1st 7 bits a data ap 1 to 8 bits ? (4) a master-receiver receives data from a slave-transmitter with a 10-bit address s : start condition p : stop condition a : ack bit r/w : read/write bit sr : restart condition from master to slave from slave to master a r/w r/w r/w r/w
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 46 when the first-byte address data matches the slave address, the aas bit of the i 2 c status register (address 00f8 16 ) is set to 1. after the second-byte address data is stored into the i 2 c data shift register (address 00f6 16 ), make an address comparison between the sec- ond-byte data and the slave address by software. when the address data of the 2 bytes matches the slave address, set the rbw bit of the i 2 c address register (address 00f7 16 ) to 1 by software. this pro- __ cessing can match the 7-bit slave address and r/w data, which are received after a restart condition is detected, with the value of the i 2 c address register (address 00f7 16 ). for the data transmission format when the 10-bit addressing format is selected, refer to figure 49, (3) and (4). (10) example of master transmission an example of master transmission in the standard clock mode, at the scl frequency of 100 khz and in the ack return mode is shown below. 1 set a slave address in the high-order 7 bits of the i 2 c address register (address 00f7 16 ) and 0 in the rbw bit. 2 set the ack return mode and scl = 100 khz by setting 85 16 in the i 2 c clock control register (address 00fa 16 ). 3 set 10 16 in the i 2 c status register (address 00f8 16 ) and hold the scl at the h level. 4 set a communication enable status by setting 48 16 in the i 2 c control register (address 00f9 16 ). 5 set the address data of the destination of transmission in the high- order 7 bits of the i 2 c data shift register (address 00f6 16 ) and set 0 in the least significant bit. 6 set f0 16 in the i 2 c status register (address 00f8 16 ) to generate a start condition. at this time, an scl for 1 byte and an ack clock automatically occurs. 7 set transmit data in the i 2 c data shift register (address 00f6 16 ). at this time, an scl and an ack clock automatically occurs. 8 when transmitting control data of more than 1 byte, repeat step 7 . 9 set d0 16 in the i 2 c status register (address 00f8 16 ). after this, if ack is not returned or transmission ends, a stop condition occurs. (11) example of slave reception an example of slave reception in the high-speed clock mode, at the scl frequency of 400 khz, in the ack non-return mode and using the addressing format is shown below. 1 set a slave address in the high-order 7 bits of the i 2 c address register (address 00f7 16 ) and 0 in the rbw bit. 2 set the no ack clock mode and scl = 400 khz by setting 25 16 in the i 2 c clock control register (address 00fa 16 ). 3 set 10 16 in the i 2 c status register (address 00f8 16 ) and hold the scl at the h level. 4 set a communication enable status by setting 48 16 in the i 2 c control register (address 00f9 16 ). 5 when a start condition is received, an address comparison is made. 6 ?when all transmitted addresses are 0 (general call) ad0 of the i 2 c status register (address 00f8 16 ) is set to 1 and an interrupt request signal occurs. ?when the transmitted addresses match the address set in 1 ass of the i 2 c status register (address 00f8 16 ) is set to 1 and an interrupt request signal occurs. ?in the cases other than the above ad0 and aas of the i 2 c status register (address 00f8 16 ) are set to 0 and no interrupt request signal occurs. 7 set dummy data in the i 2 c data shift register (address 00f6 16 ). 8 when receiving control data of more than 1 byte, repeat step 7 . 9 when a stop condition is detected, the communication ends.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 47 osd mode (on-screen display mode) 40 characters 5 16 lines 16 5 20 dots 14 kinds 5 1, 5 2, 5 3 1t c 5 1/2h, 1t c 5 1h, 1.5t c 5 1/2h, 1.5t c 5 1h, 2t c 5 2h, 3t c 5 3h border 1 screen : 7 kinds, max. 15 kinds (a character unit) possible (a screen unit, 1 screen : 7 kinds, max. 7 kinds) possible (a character unit, 1 screen : 7 kinds, max. 7 kinds) possible (a screen unit, 1 screen : 7 kinds, max. 7 kinds) r, g, b, i1, out1, out2 dual layer osd function (layer 2) possible osd functions table 10 outlines the osd functions of the m37271mf-xxxsp. the m37271mf-xxxsp incorporates an osd control circuit of 40 characters 5 16 lines. osd is controlled by the osd control regis- ter. there are 3 display modes and they are selected by a block unit. the display modes are selected by the block control register i (i = 1 to 6). the features of each mode are described below. exosd mode (extra on-screen display mode) 40 characters 5 16 lines 16 5 26 dots 6 kinds 5 1, 5 2, 5 3 1t c 5 1/2h, 1t c 5 1h border, extra font (32 kinds) 1 screen : 7 kinds, max. 7 kinds (a character unit) possible (a screen unit, 1 screen : 7 kinds, max. 7 kinds) possible (a character unit, 1 screen : 7 kinds, max. 7 kinds) possible (a screen unit, 1 screen : 7 kinds, max. 7 kinds) possible (a screen unit, 1 screen : 7 kinds, max. 7 kinds) r, g, b, i1, i2, out1, out2 possible cc mode (closed caption mode) 40 characters 5 16 lines 16 5 26 dots (character : 20 5 16 dots) 2 kinds 5 1, 5 2 1t c 5 1/2h smooth italic, under line, flash 1 screen : 7 kinds, max. 7 kinds (a character unit) possible (a screen unit, 1 screen : 7 kinds, max. 7 kinds) possible (a character unit, 1 screen : 7 kinds, max. 7 kinds) r, g, b, out1, out2 auto solid space function window function dual layer osd function (layer 1) possible parameter number of display characters dot structure kinds of characters kinds of character sizes attribute character font coloring raster coloring character background coloring border coloring extra font coloring osd output function display expansion (multiline display) pre-divide ratio (note) dot size table 10. features of each display mode display mode 320 kinds (in exosd mode, they can be combined with 32 kinds of extra fonts) notes 1: the divide ratio of the frequency divider (the pre-divide circuit) is referred as pre-divide ratio hereafter. 2: the character size is specified with dot size and pre-divide ratio (refer to (3) dote size).
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 48 the osd circuit has an extended display mode. this mode allows multiple lines (16 lines or more) to be displayed on the screen by interrupting the display each time one line is displayed and rewriting data in the block for which display is terminated by software. figure 50 shows the configuration of osd character. figure 51 shows the block diagram of the osd control circuit. figure 52 shows the structure of the osd control register. figure 53 shows the structure of the block control register. fig. 50. configuration of osd character 16 dots 26 dots 20 dots underline area + blank area + : displayed only in ccd mode. blank area 26 dots 20 dots character font 26 dots 20 dots osd mode cc mode extra font exosd mode 16 dots 16 dots 16 dots 16 dots logical sum (or) + +
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 49 fig. 51. block diagram of osd control circuit display oscillation circuit osc1 osc2 h sync v sync ram for osd 20-bit 5 40 5 16 data bus ram for osd (16-bit 5 20 5 320) + 16-bit 5 26 5 32) shift register 2 16-bit shift register 1 16-bit data slicer clock clock for osd output circuit r g b i1 i2 osd control circuit out1 out2 control registers for osd (address 00ce 16 ) (address 00cf 16 ) (addresses 00d0 16 to 00df 16 ) (address 0216 16 ) (address 0217 16 ) (address 0218 16 ) (address 0219 16 ) (address 021b 16 ) (addresses 021c 16 to 021f 16 ) (addresses 0220 16 to 023f 16 ) osd control register horizontal position register block control registers clock source control register i/o polarity control register raster color register extra font color register border color register window h/l registers vertical registers
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 50 flash mode selection bit 0 : color signal of character background part does not flash 1 : color signal of character background part flashes 70 osd control register (oc : address 00ce 16 ) osd control bit (note 1) 0 : all-blocks display off 1 : all-blocks display on scan mode selection bit 0 : normal scan mode 1 : bi-scan mode border type selection bit 0 : all bordered 1 : shadow bordered (note 2) automatic solid space control bit 0 : off 1 : on window control bit 0 : off 1 : on layer mixing control bits (note 3) b7 b6 0 0 : logical sum (or) of layer 1? color and layer 2? color 0 1 : layer 1? color has priority 1 0 : layer 2? color has priority 1 1 : do not set notes 1 : even this bit is switched during display, the display screen remains unchanged until a rising (falling) of the next v sync . 2 : shadow border is output at right and bottom side of the font. 3 : set ?0?during displaying extra fonts. display layer layer 1 layer 2 dot size 1t c 5 1/2h 1t c 5 1h 2t c 5 2h 3t c 5 3h 1t c 5 1/2h 1t c 5 1h 2t c 5 2h 3t c 5 3h 1t c 5 1/2h 1t c 5 1h 2t c 5 2h 3t c 5 3h 1t c 5 1/2h 1t c 5 1h 1t c 5 1/2h 1t c 5 1h 1.5t c 5 1/2h 1.5t c 5 1h b3 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 b4 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 b6 0 0 1 1 1 table 11. setting value of block control registers pre-divide ratio 5 1 5 2 5 3 5 1 5 2 b5 0 1 0 1 1 cs 6 0 1 notes 1: cs 6 : bit 6 of clock control register (address 0216 16 ) 2: t c : osd clock cycle divided in the pre-divide circuit 3: h: h sync 70 block control register i (i = 1 to 16) (bci : addresses 00d0 16 to 00df) display mode selection bits b1 b0 0 0 : display off 0 1 : osd mode 1 0 : cc mode 1 1 : exosd mode border control bit 0 : border off 1 : border on notes : bit 4 of the color code 1 controls out1 output when bit 7 is ?. bit 4 of the color code 1 controls out2 output when bit 7 is ?. dot size selection bit refer to table 11. pre-divide ratio e layer selection bits refer to table 11. out 2 output control bit (note) 0 : out2 output off 1 : out2 output on fig. 53. structure of block control registers fig. 52. structure of osd control register
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 51 osd mode same as layer 1 same as layer 1 (note) pre-divide ratio = 1 pre-divide ratio = 2 1t c 5 1/2h 1t c 5 1/2h, 1.5t c 5 1/2h 1t c 5 1h 1t c 5 1h, 1.5t c 5 1h same position as layer 1 (1) dual layer osd m37271mf-xxxsp has 2 layers; layer 1 and layer 2. these layers display the osd for controlling tv and the closed caption display at the same time and overlayed on each other. each block can be assigned to either layer by bits 6 and 5 of the block control register (refer to figure 53). for example, only when both bits 5 and 6 are 1, the block is assigned to layer 2. other bit combinations assign the block to layer 1. when a block of layer 1 is overlapped with that of layer 2, a screen is combined (refer to figure 55) by bits 7 and 6 of the osd control register (refer to figure 52). note: when using the dual layer osd, note table 12. fig. 54. image of dual layer osd cc mode data slicer clock or osc1 5 1 or 5 2 (all blocks) 1t c 5 1/2h arbitrary display mode osd clock source pre-divide ratio dot size horizontal display start position table 12. conditions of dual layer note: for the pre-divide ratio of the layer 2, select the same as the layer 1s ratio by bit 6 of the clock control register. block in layer 1 block in layer 2 fig. 55. display example of dual layer osd layer 2 layer 1 block 1 block 2 block 11 block 12 ... block 13 block 14 block 15 block 16 block block display example of layer 1 = ?ello,?layer 2 = ?h5 ch5 hello logical sum (or) of layer 1? color and layer 2? color bit 7 = ?,?bit 6 = ? layer 1? color has priority bit 7 = ?? bit 6 = ? ch5 hello layer 2? color has priority bit 7 = ?,?bit 6 = ? hello ch5 block parameter
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 52 (2) display position the display positions of characters are specified in units called a block. there are 16 blocks, blocks 1 to 16. up to 40 characters can be displayed in each block (refer to (6) memory for osd). the display position of each block can be set in both horizontal and vertical directions by software. the display position in the horizontal direction can be selected for all blocks in common from 256-step display positions in units of 4 t osc (t osc = oscillating cycle for osd). the display position in the vertical direction for each block can be selected from 1024-step display positions in units of 1 t h ( t h = h sync cycle). blocks are displayed in conformance with the following rules: 1 when the display position is overlapped with another block (figure 56, (b)), a lower block number (1 to 16) is displayed on the front. 2 when another block display position appears while one block is displayed (figure 56 (c)), the block with a larger set value as the vertical display start position is displayed. however, do not dis- play block with the dot size of 2t c 5 2h or 3t c 5 3h during dis- play period ( ] ) of another block. ] in the case of osd mode block: 20 dots in vertical from the verti- cal display start position. ] in the case of ccd or exosd mode block: 26 dots in vertical from the vertical display start position. fig. 56. display position (hr) vp12, vp22 block 1 block 2 (a) example when each block is separated vp13, vp23 block 3 (hr) vp11, vp21 vp12, vp22 block 1 (b) example when block 3 overlaps with block 1 (block 3 is not displayed) (hr) vp11, vp21 vp12, vp22 (c) example when block 3 overlaps in process of block 1 block 1 block 3 note: vp1i or vp2i (i : 1 to 6) indicates the contents of vertical position registers 1i or 2i. vp11, vp21
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 53 the display position in the vertical direction is determined by count- ing the horizontal sync signal (h sync ). at this time, it starts to count the rising edge (falling edge) of h sync signal from after about 1 ma- chine cycle of rising edge (falling edge) of v sync signal. so interval from rising edge (falling edge) of v sync signal to rising edge (falling edge) of h sync signal needs enough time (2 machine cycles or more) for avoiding jitter. the polarity of h sync and v sync signals can se- lect with the i/o polarity control register (address 0217 16 ). for de- tails, refer to (15) osd output pin control. note: when bits 0 and 1 of the i/o polarity control register (address 0217 16 ) are set to 1 (negative polarity), the vertical position is determined by counting falling edge of h sync signal after rising edge of v sync control signal in the microcomputer (re- fer to figure 57). fig. 57. supplement explanation for display position the vertical position for each block can be set in 1024 steps (where each step is 1t h (t h : h sync cycle)) as values 00 16 to ff 16 in vertical position register 1i (i = 1 to 16) (addresses 0220 16 to 022f 16 ) and values 00 16 to ff 16 in the vertical position register 2i (i = 1 to 16) (addresses 0230 16 to 023f 16 ). the structure of the vertical posi- tion registers is shown in figure 58. fig. 58. structure of vertical position registers the horizontal position is common to all blocks, and can be set in 256 steps (where 1 step is 4t c , t c being the oscillating cycle for display) as values 00 16 to ff 16 in bits 0 to 7 of the horizontal position register (address 00cf 16 ). the structure of the horizontal position register is shown in figure 59. fig. 59. structure of horizontal position register when bits 0 and 1 of the i/o polarity control register (address 0217 16 ) are set to ??(negative polarity) v sync signal input v sync control signal in microcomputer 0.25 to 0.50 [ m s] ( at f(x in ) = 8mhz) period of counting h sync signal (note 1) h sync signal input not count 12345 notes 1 : do not generate falling edge of h sync signal near rising edge of v sync control signal in microcomputer to avoid jitter. 2 : the pulse width of v sync and h sync needs 8 machine cycles or more. 70 vertical position register 1i (i = 1 to 16) (vp1i : addresses 0220 16 to 022f 16 ) control bits of vertical display start positions (note) vertical display start positions (low-order 8 bits) t h 5 (setting value of low-order 2 bits of vp2i 5 16 + setting value of low-order 4 bits of vp1i 5 16 + setting value of low-order 4 bits of vp1i 5 16 ) note : set values except ?0 16 ?and ?1 16 ?to vp1i when vp2i is ?0 16. 2 1 0 70 vertical position register 2i (i = 1 to 16) (vp2i : addresses 0230 16 to 023f 16 ) control bits of vertical display start positions (note) vertical display start positions (high-order 2 bits) t h 5 (setting value of low-order 2 bits of vp2i 5 16 + setting value of low-order 4 bits of vp1i 5 16 + setting value of low-order 4 bits of vp1i 5 16 ) 2 1 0 note : the setting value synchronizes with a rising (falling) of the v sync . 70 horizontal position register (hp : address 00cf 16 ) control bits of horizontal display start positions horizontal display start positions 4t osc 5 (setting value of high-order 4 bits 5 16 + setting value of low-order 4 bits 5 16 ) 1 0
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 54 notes 1 : 1t c (t c : osd clock cycle divided by prescaler) gap oc- curs between the horizontal display start position set by the horizontal position register and the most left dot of the 1st block. accordingly, when 2 blocks have different pre- divide ratios, their horizontal display start position will not match. 2 : the horizontal start position is based on the osd clock source cycle selected for each block. accordingly, when 2 blocks have different osd clock source cycles, their hori- zontal display start position will not match. fig. 60. notes on horizontal display start position (3) dot size the dot size can be selected by a block unit. the dot size in vertical direction is determined by dividing h sync in the vertical dot size con- trol circuit. the dot size in horizontal is determined by dividing the following clock in the horizontal dot size control circuit : the clock gained by dividing the osd clock source (data slicer clock, osc1) in the pre-divide circuit. the clock cycle divided in the pre-divide circuit is defined as 1t c . the dot size of the layer 1 is specified by bits 6 to 3 of the block control register. the dot size of the layer 2 is specified by the following bits : bits 3 and 4 of the block control register, bit 6 of the clock source control register. refer to figure 53 (the structure of the block control regis- ter), refer to figure 62 (the structure of the clock source control reg- ister). the block diagram of dot size control circuit is shown in figure 61. notes 1 : the pre-divide ratio = 3 cannot be used in the cc mode. 2 : the pre-divide ratio of the osd mode block on the layer 2 must be same as that of the cc mode block on the layer 1 by bit 6 of the clock source control register. 3 : in the bi-scan mode, the dot size in the vertical direction is 2 times as compared with the normal mode. refer to (13) scan mode about the scan mode. fig. 61. block diagram of dot size control circuit h sync 1t c 1t c block 1 (pre-divide ratio 1, clock source data slicer clock) 1t c 1t c 4t osc 5 n 4t osc 5 n note 1 note 2 block 2 (pre-divide ratio 2, clock source data slicer clock) block 3 (pre-divide ratio 3, clock source data slicer clock) block 4 (pre-divide ratio 3, clock source osc1) data slicer clock h sync osc1 cs 0 synchronization cycle 5 2 circuit cycle 5 3 pre-divide circuit clock cycle = 1t c horizontal dot size control circuit vertical dot size control circuit osd control circuit = = == = = ==
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 55 input port 1 0 1 (4) clock for osd as a clock for display to be used for osd, it is possible to select one of the following 3 types. ? data slicer clock output from the data slicer (approximately 26 mhz) ? clock from the lc oscillator supplied from the pins osc1 and osc2 ? clock from the ceramic resonator or the quartz-crystal oscillator from the pins osc1 and osc2 this osd clock for each block can be selected by the following bits : bit 7 of the port p3 direction register, bits 5 and 4 of the clock source control register (addresses 0216 16 ). a variety of character sizes can be obtained by combining dot sizes with osd clocks. when not us- ing the pins osc1 and osc2 for the osd clock i/o pins, the pins can be used as sub-clock i/o pins or port p6. fig. 63. block diagram of osd selection circuit fig. 62. structure of clock control register table 13. setting for p6 3 /osc1/x cin , p6 4 /osc2/x cout b7 port p3 direction register clock source control register osd clock i/o pin 0 011 101 b5 b4 sub-clock i/o pin 0 0 0 function register note : be sure to set bit 7 to ??for program of the mask and the eprom versions. for the emulator mcu version (m37270erss), be sure to set bit 7 to ??when using the data slicer clock for software debugging. 70 clock source control register (cs : address 0216 16 ) cc mode clock selection bit 0 : data slicer clock 1 : osc1 clock osd mode clock selection bits b2 b1 0 0 : data slicer clock 0 1 : osc1 clock 1 0 : 1 1 : do not set exosd mode clock selection bit 0 : data slicer clock 1 : osc1 clock pre-divide ratio of layer 2 selection bit 0 : 5 1 1 : 5 2 test bit (note) osd1 oscillating mode selection bits b5 b4 0 0 : 32 kh z oscillating mode 0 1 : input ports p6 3 , p6 4 1 0 : lc oscillating mode 1 1 : ceramic ?quartz-crystal oscillating mode ? ?1 ?0 ? ? 32 kh z data slicer circuit data slicer clock osc1 clock lc ceramic quartz-crystal oscillating mode for osd cs 5 , cs 4 ?0 ? ? ? cs 0 cs 1 cs 3 cs 2 = ? cc mode block osd mode block exosd mode block
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 56 (5) field determination display to display the block with vertical dot size of 1/2h, whether an even field or an odd field is determined through differences in a synchro- nizing signal waveform of interlacing system. the dot line 0 or 1 (re- fer to figure 65) corresponding to the field is displayed alternately. in the following, the field determination standard for the case where both the horizontal sync signal and the vertical sync signal are nega- tive-polarity inputs will be explained. a field determination is deter- mined by detecting the time from a falling edge of the horizontal sync signal until a falling edge of the v sync control signal (refer to figure 57) in the microcomputer and then comparing this time with the time of the previous field. when the time is longer than the comparing time, it is regarded as even field. when the time is shorter, it is re- garded as odd field the contents of this field can be read out by the field determination flag (bit 7 of the i/o polarity control register at address 0217 16 ). a dot line is specified by bit 6 of the i/o polarity control register (refer to figure 65). however, the field determination flag read out from the cpu is fixed to 0 at even field or 1 at odd field, regardless of bit 6. fig. 64. structure of i/o polarity control register 0 7 i/o polarity control register (pc : address 0217 16 ) h sync input polarity switch bit 0 : positive polarity input 1 : negative polarity input out2 output polarity switch bit 0 : positive polarity output 1 : negative polarity output v sync input polarity switch bit 0 : positive polarity input 1 : negative polarity input r/g/b output polarity switch bit 0 : positive polarity output 1 : negative polarity output i1, i2 output polarity switch bit 0 : positive polarity output 1 : negative polarity output out1 output polarity switch bit 0 : positive polarity output 1 : negative polarity output display dot line selection bit (note) field determination flag 0 : even field 1 : odd field note : refer to figure 65. at odd field at odd field 1 : at even field 0 : at even field
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 57 fig. 65. relation between field determination flag and display font both h sync signal and v sync signal are negative-polarity input field even odd field determination flag(note) display dot line selection bit display dot line 0 (t2 > t1) 1 (t3 < t2) 0 1 0 1 when using the field determination flag, be sure to set bit 0 of the pwm mode register 1 (address 020a 16 ) to 0. t2 t3 character rom font configuration diagram dot line 0 dot line 1 odd dot line 0 dot line 1 (nC1) field (odd-numbered) t1 0.25 to 0.50[ms] at f(x in ) = 8 mhz cc mode exosd mode 13579111315 1 3 5 7 9 11 13 15 17 19 21 23 25 26 24 22 20 18 16 14 12 10 8 6 4 2 2 4 6 8 10 12 14 16 1 3 5 7 9 11 13 15 17 19 20 18 16 14 12 10 8 6 4 2 13579111315 2 4 6 8 10 12 14 16 osd mode h sync v sync and v sync control signal in microcom- puter upper : v sync signal lower : v sync control signal in micro- computer (n) field (even-numbered) (n+1) field (odd-numbered) when the display dot line selection bit is 0, the font is displayed at even field, the font is displayed at odd field. bit 7 of the i/o polarity control register can be read as the field determination flag : 1 is read at odd field, 0 is read at even field. note : the field determination flag changes at a rising edge of the v sync control signal (negative-polarity input) in the microcomputer.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 58 (6) memory for osd there are 2 types of memory for osd : rom for osd (addresses 10800 16 to 1567f 16 , 18000 16 to 1e43f 16 ) used to store character dot data (masked) and ram for osd (addresses 0800 16 to 0fff 16 ) used to specify the characters and colors to be displayed. the fol- lowing describes each type of memory. 1 1 1 1 1 rom for osd (addresses 10800 16 to 1567f 16 , 18000 16 to 1e43f 16 ) the rom for osd contains dot pattern data for characters to be displayed. to actually display the character code and the extra code stored in this rom, it is necessary to specify them by writing the character code inherent to each character (code determined based on the addresses in the rom for osd) into the ram for osd. the osd rom of the character font has a capacity of 12800 bytes. since 40 bytes are required for 1 character data, the rom can stores up to 320 kinds of characters. the osd rom of the extra font has a capacity of 1664 bytes. since 52 bytes are required for 1 character data, the rom can stores up to 32 kinds of characters. data of the character font and extra font is specified shown in figure 66. fig. 66. osd character data storing form osd rom address of character font data ad16 ad15 ad14 ad13 ad12 ad11 ad10 ad9 ad8 ad7 ad6 ad5 ad4 ad3 ad2 ad1 ad0 line number character code font bit 02 16 to 15 16 00 16 to 13f 16 0 : left font 1 : right font osd rom address bit line number/character code/font bit 10 line number character code font bit ad16 ad15 ad14 ad13 ad12 ad11 ad10 ad9 ad8 ad7 ad6 ad5 ad4 ad3 ad2 ad1 ad0 11 00 00 02 16 0000 16 7ff0 16 7ff8 16 601c 16 600c 16 600c 16 600c 16 600c 16 09 16 03 16 04 16 05 16 06 16 07 16 08 16 0a 16 601c 16 7ff8 16 7ff0 16 6300 16 6380 16 61c0 16 60e0 16 6070 16 11 16 0b 16 0c 16 0d 16 0e 16 0f 16 10 16 6038 16 601c 16 600c 16 0000 16 15 16 12 16 13 16 14 16 b0 b7 b0 b7 02 16 0003 16 0003 16 0003 16 0003 16 0003 16 0003 16 0003 16 0003 16 09 16 03 16 04 16 05 16 06 16 07 16 08 16 0a 16 0003 16 0003 16 0003 16 0003 16 0003 16 0003 16 0003 16 0003 16 11 16 0b 16 0c 16 0d 16 00 16 00 16 10 16 0003 16 0003 16 0003 16 0003 16 15 16 12 16 13 16 14 16 b0 b7 b0 b7 ffff 16 fffe 16 0000 16 0000 16 19 16 16 16 17 16 18 16 00 16 01 16 fffe 16 ffff 16 line number line number extra code font bit 00 16 to 19 16 00 16 to 1f 16 0 : left font 1 : right font osd rom address bit line number/extra code /font bit extra code line number left font right font line number data in osd rom left font right font data in osd rom osd rom address of extra font data character font extra font font bit = = = = = =
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 59 character code specification 0800 16 0801 16 : 0817 16 0818 16 : 0826 16 0827 16 0880 16 0881 16 : 0897 16 0e98 16 : 08a6 16 08a7 16 0900 16 0901 16 : 0917 16 0918 16 : 0926 16 0927 16 0980 16 0981 16 : 0997 16 0998 16 : 09a6 16 09a7 16 0a00 16 0a01 16 : 0a17 16 0a18 16 : 0a26 16 0a27 16 color code 2 specification 0828 16 0829 16 : 083f 16 0868 16 : 0876 16 0877 16 08a8 16 08a9 16 : 08bf 16 08e8 16 : 08f6 16 08f7 16 0928 16 0929 16 : 093f 16 0968 16 : 0976 16 0977 16 09a8 16 09a9 16 : 09bf 16 09e8 16 : 09f6 16 09f7 16 0a28 16 0a29 16 : 0a3f 16 0a68 16 : 0a76 16 0a77 16 display position (from left) 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character block block 1 block 2 block 3 block 4 block 5 table 14. contents of osd ram 2 2 2 2 2 ram for osd (addresses 0800 16 to 0fff 16 ) the ram for osd is allocated at addresses 0800 16 to 0fff 16 , and is divided into a display character code specification part, color code 1 specification part, and color code 2 specification part for each block. table 14 shows the contents of the ram for osd. for example, to display 1 character position (the left edge) in block 1, write the character code in address 0800 16 , write the color code 1 at 0840 16 , and write the color code 2 at 0828 16 . the structure of the ram for osd is shown in figure 68. note: for the osd mode block with dot size of 1.5t c 5 1/2h and 1.5t c 5 1h, the 3nth (n = 1 to 13) character is skipped as compared with ordinary block ] . accordingly, maximum 26 char- acters are only displayed in 1 block. the ram data for the 3nth character does not effect the display. any character data can be stored here (refer to figure 67). ] blocks with dot size of 1t c 5 1/2h and 1t c 5 1h, or blocks on the layer 1 color code 1 specification 0840 16 0841 16 : 0857 16 0858 16 : 0866 16 0867 16 08c0 16 08c1 16 : 08d7 16 08d8 16 : 08e6 16 08e7 16 0940 16 0941 16 : 0957 16 0958 16 : 0966 16 0967 16 09c0 16 09c1 16 : 09d7 16 08d8 16 : 09e6 16 09e7 16 0a40 16 0a41 16 : 0a57 16 0a58 16 : 0a66 16 0a67 16
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 60 color code 2 specification 0aa8 16 0aa9 16 : 0abf 16 0ae8 16 : 0af6 16 0af7 16 0b28 16 0b29 16 : 0b3f 16 0b68 16 : 0b76 16 0b77 16 0ba8 16 0ba9 16 : 0bbf 16 0be8 16 : 0bf6 16 0bf7 16 0c28 16 0c29 16 : 0c3f 16 0c68 16 : 0c76 16 0c77 16 0ca8 16 0ca9 16 : 0cbf 16 0ce8 16 : 0cf6 16 0cf7 16 0d28 16 0d29 16 : 0d3f 16 0d68 16 : 0d76 16 0d77 16 display position (from left) 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character block block 6 block 7 block 8 block 9 block 10 block 11 table 14. contents of osd ram (continued) color code 1 specification 0ac0 16 0ac1 16 : 0ad7 16 0ad8 16 : 0ae6 16 0ae7 16 0b40 16 0b41 16 : 0b57 16 0b58 16 : 0b66 16 0b67 16 0bc0 16 0bc1 16 : 0bd7 16 0bd8 16 : 0be6 16 0be7 16 0c40 16 0c41 16 : 0c57 16 0c58 16 : 0c66 16 0c67 16 0cc0 16 0cc1 16 : 0cd7 16 0cd8 16 : 0ce6 16 0ce7 16 0d40 16 0d41 16 : 0d57 16 0d58 16 : 0d66 16 0d67 16 character code specification 0a80 16 0a81 16 : 0a97 16 0a98 16 : 0aa6 16 0aa7 16 0b00 16 0b01 16 : 0b17 16 0b18 16 : 0b26 16 0b27 16 0b80 16 0b81 16 : 0b97 16 0b98 16 : 0ba6 16 0ba7 16 0c00 16 0c01 16 : 0c17 16 0c18 16 : 0c26 16 0c27 16 0c80 16 0c81 16 : 0c97 16 0c98 16 : 0ca6 16 0ca7 16 0d00 16 0d01 16 : 0d17 16 0d18 16 : 0d26 16 0d27 16
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 61 display position (from left) 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character 1st character 2nd character : 24th character 25th character : 39th character 40th character block block 12 block 13 block 14 block 15 block 16 table 14. contents of osd ram (continued) color code 1 specification 0dc0 16 0dc1 16 : 0dd7 16 0dd8 16 : 0de6 16 0de7 16 0e40 16 0e41 16 : 0e57 16 0e58 16 : 0e66 16 0e67 16 0ec0 16 0ec1 16 : 0ed7 16 0ed8 16 : 0ee6 16 0ee7 16 0f40 16 0f41 16 : 0f57 16 0f58 16 : 0f66 16 0f67 16 0fc0 16 0fc1 16 : 0fd7 16 0fd8 16 : 0fe6 16 0fe7 16 color code 2 specification 0da8 16 0da9 16 : 0dbf 16 0de8 16 : 0df6 16 0df7 16 0e28 16 0e29 16 : 0e3f 16 0e68 16 : 0e76 16 0e77 16 0ea8 16 0ea9 16 : 0ebf 16 0ee8 16 : 0ef6 16 0ef7 16 0f28 16 0f29 16 : 0f3f 16 0f68 16 : 0f76 16 0f77 16 0fa8 16 0fa9 16 : 0fbf 16 0fe8 16 : 0ff6 16 0ff7 16 character code specification 0d80 16 0d81 16 : 0d97 16 0d98 16 : 0da6 16 0da7 16 0e00 16 0e01 16 : 0e17 16 0e18 16 : 0e26 16 0e27 16 0e80 16 0e81 16 : 0e98 16 0e99 16 : 0ea6 16 0ea7 16 0f00 16 0f01 16 : 0f17 16 0f18 16 : 0f26 16 0f27 16 0f80 16 0f81 16 : 0f97 16 0f98 16 : 0fa6 16 0fa7 16 fig. 67. ram data for 3nth character 1 1 2 2 3 4 4 5 5 7 6 8 7 10 8 11 9 13 10 14 11 16 12 17 13 19 14 20 15 22 16 23 17 25 18 26 19 28 20 29 21 31 22 32 23 34 24 35 25 37 26 38 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 2 3 4 5 6 7 8 9 10111213141516171819202122232425262728293031323334353637383940 display sequence ram address order display sequence ram address order 1.5tc size block 1tc size block
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 62 note: do not read from and write to addresses in osd ram shown in table 15. table 15. list of access disable addresses 0878 16 08f8 16 0978 16 09f8 16 0a78 16 0af8 16 0b78 16 0bf8 16 0c78 16 0cf8 16 0d78 16 0df8 16 0e78 16 0ef8 16 0f78 16 0ff8 16 0879 16 08f9 16 0979 16 09f9 16 0a79 16 0af9 16 0b79 16 0bf9 16 0c79 16 0cf9 16 0d79 16 0df9 16 0e79 16 0ef9 16 0f79 16 0ff9 16 087a 16 08fa 16 097a 16 09fa 16 0a7a 16 0afa 16 0b7a 16 0bfa 16 0c7a 16 0cfa 16 0d7a 16 0dfa 16 0e7a 16 0efa 16 0f7a 16 0ffa 16
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 63 b0 rf6 rf5 rf4 rf3 rf2 rf1 rf0 rc17 rc16 rc15 rc14 rc13 rc12 rc11 rc10 rc23 rc22 rc21 rc20 rf7 b3 b0 b7 b0 b7 blocks 1 to16 character code color code 1 color code 2 fig. 68. structure of osd ram bit rf0 rf1 rf2 rf3 rf4 rf5 rf6 rf7 rc10 rc11 rc12 rc13 rc14 rc15 rc16 rc17 rc20 rc21 rc22 rc23 bit name character code (low-order 8 bits) character code (high-order 1 bit) control of character color r control of character color g control of character color b out1 control flash control underline control italic control control of background color r control of background color g control of background color b not used function specification of character code in osd rom 0: color signal output off 1: color signal output on 0: character output 1: background output 0: flash off 1: flash on 0: underline off 1: underline on 0: italic off 1: italic on 0: color signal output off 1: color signal output on bit name character code (low-order 8 bits) character code (high-order 1 bit) control of character color r control of character color g control of character color b out1 control control of character color i1 not used control of background color r control of background color g control of background color b control of background color i1 function specification of character code in osd rom 0: color signal output off 1: color signal output on 0: character output 1: background output 0: color signal output off 1: color signal output on 0: color signal output off 1: color signal output on bit name character code (low-order 8 bits) character code (high-order 1 bit) character color code 0 (cc0) character color code 1 (cc1) character color code 2 (cc2) out1 control extra code 0 (ex0) extra code 1 (ex1) extra code 2 (ex2) background color code 0 (bcc0) background color code 1 (bcc1) background color code 2 (bcc2) extra code 3 (ex3) function specification of character code in osd rom specification of character color 0: character output 1: background output specification of extra code in osd rom specification of background color specification of extra code in osd rom cc mode osd mode exosd mode notes 1: read value of bits 4 to 7 of the color code 2 is undefined. 2: for not used bits, the write value is read. 3: the decode value of the extra code is ex4.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 64 i2 0 0 0 0 1 0 0 0 i2 0 0 0 0 1 0 0 0 b 0 0 0 0 0 1 1 1 i1 0 0 0 1 0 1 0 0 g 0 0 1 1 1 1 1 1 r 0 1 0 1 1 1 0 1 table 16. correspondence table of color code 1 and color signal output in exosd mode table 17. correspondence table of color code 2 and color signal output in exosd mode (7) character color the color for each character is displayed by the color code 1. the kinds and specification method of character color are different de- pending on each mode. ? cc mode .................. 7 kinds specified by bits 1 (r), 2 (g), and 3 (b) of the color code 1 ? osd mode ............... 15 kinds specified by bits 1 (r), 2 (g), 3 (b), and 5 (i1) of the color code 1 ? exosd mode .......... 7 kinds specified by bits 1 (cc0), 2 (cc1), and 3 (cc2) of the color code 1 the correspondence table of the color code 1 and color signal out- put in the exosd mode is shown in table 16. (8) character background color the character background color can be displayed in the character display area. the character background color for each character is specified by the color code 2. the kinds and specification method of character background color are different depending on each mode. ? cc mode .................. 7 kinds specified by bits 0 (r), 1 (g), and 2 (b) of the color code 2 ? osd mode ............... 15 kinds specified by bits 0 (r), 1 (g), 2 (b), and 3 (i1) of the color code 2 ? exosd mode .......... 7 kinds specified by bits 0 (bcc0), 1 (bcc1), and 2 (bcc2) of the color code 2 the correspondence table of the color code 2 and color signal output in the exosd mode is shown in table 17. note : the character background color is displayed in the following part : (character display area)C(character font)C(border)C(extra font). accordingly, the character background color does not mix with these color signal. bit 3 cc2 0 0 0 0 1 1 1 1 bit 2 cc1 0 0 1 1 0 0 1 1 bit 1 cc0 0 1 0 1 0 1 0 1 r 0 1 0 1 1 1 0 1 g 0 0 1 1 1 1 1 1 b 0 0 0 0 0 1 1 1 i1 0 0 0 1 0 1 0 0 color code 1 bit 2 bcc2 0 0 0 0 1 1 1 1 bit 1 bcc1 0 0 1 1 0 0 1 1 bit 0 bcc0 0 1 0 1 0 1 0 1 color code 2 color signal output color signal output
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 65 (9) out1, out2 signals the out1, out2 signals are used to control the luminance of the video signal. the output waveform of the out1, out2 signals is controlled by bit 4 of the color code 1 (refer to figure 68), bits 2 and fig. 69. setting value for controlling out1, out2 and corresponding output waveform 7 of the block control register (refer to figure 53). the setting values for controlling out1, out2 and the corresponding output waveform is shown in figure 69. 0 1 0 1 0 1 0 1 0 1 0 1 0 1 out1 out2 out1 out2 out1 out2 out1 out2 out1 out2 out1 out2 out1 out2 out1 out2 block control register out2 output control bit (b7) border output control bit (b2) output waveform out1 control (b4 of color code 1)
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 66 4 4 4 4 4 extra font there are 32 kinds of the extra fonts configured with 16 5 26 dots in osd rom. 16 kinds of these fonts can be displayed by ored with the character font by a character unit (refer to figure 50). for the others, only the extra font is displayed (refer to figure 50). in only the exosd mode, the extra font is controlled the following : bits 7 to 5 of the color code 1, bit 3 of the color code 2, and decode value (ex4) of the character code. when the character code = 00 16 to 13f 16 , ex4 is 0, when the character code = 140 16 , ex4 is 1. since there is no font with the character code = 140 16 , a blank is dis- played. the extra font color for each screen is specified by the extra color register. when the character font overlaps with the extra font, the color of the area becomes the ored color of both fonts. note : when using the extra font, set bits 7 and 6 of the osd control register to 0 (refer to figure 52). fig. 70. structure of extra font color register (10) attribute the attributes (flash, underline, italic) are controlled to the character font. the attributes for each character are specified by the color codes 1 and 2 (refer to figure 68). the attributes to be controlled are differ- ent depending on each mode. cc mode ..................... flash, underline, italic osd mode .................. border (all bordered, shadow bordered can be selected) exosd mode ............. border (all bordered, shadow bordered can be selected) , extra font (32 kinds) 1 1 1 1 1 under line the underline is output at the 23th and 24th dots in vertical direction only in the cc mode. the underline is controlled by bit 6 of the color code 1. the color of underline is the same color as that of the char- acter font. 2 2 2 2 2 flash the parts of the character font, the underline, and the character back- ground are flashed only in the cc mode. the color signals (r, g, b, out1) of the character font and the underline are controlled by bit 5 of the color code 1. all of the color signals for the character font flash. however, the color signal for the character background can be con- trolled by bit 3 of the osd control register (refer to figure 52). the flash cycle bases on the v sync count. v sync cycle 5 48 ; 768 ms (at flash on) v sync cycle 5 16 ; 256 ms (at flash off) 3 3 3 3 3 italic the italic is made by slanting the font stored in osd rom only in the cc mode. the italic is controlled by bit 7 of the color code 1. the display example of the italic and underline is shown in figure 70. in this case, 16 26 dots are used and r is displayed. notes 1: when setting both the italic and the flash, the italic charac- ter flashes. 2: when the pre-divide ratio = 1, the italic character with slant of 1 dot 5 5 steps is displayed (refer to figure 71 (c)). when the pre-divide ratio = 2, the italic character with slant of 1/2 dot 5 10 steps is displayed (refer to figure 71 (d)). 3: the boundary of character color is displayed in italic. how- ever, the boundary of character background color is not af- fected by the italic (refer to figure 72). 4: the adjacent character (one side or both side) to an italic character is displayed in italic even when the character is not specified to display in italic (refer to figure 72). 5: when displaying the italic character in the block with the pre-divide ratio = 1, set the osd clock frequency to 11 mhz to 14 mhz. 7 extra font color register (ec : address 0218 16 ) extra font color r control bit 0 : no output 1 : output extra font color g control bit 0 : no output 1 : output extra font color b control bit 0 : no output 1 : output extra font color i1 control bit 0 : no output 1 : output extra font color i2 control bit 0 : no output 1 : output 0
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 67 fig. 72. example of italic display fig. 71. example of attribute display (in cc mode) 0 0 10 0 1 0 1 color code 1 bit 6 bit 7 color code 1 bit 6 bit 7 color code 1 bit 6 bit 7 color code 1 bit 6 bit 7 (a) ordinary (b) underline (c) italic (pre-divide ratio = 1) (d) italic (pre-divide ratio = 2 ) 10 0 1 1 0 1 italic on one side italic on both sides bit 7 of color code 1 note : the wavy-lined is the boundary of character color
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 68 5 5 5 5 5 border the border is output in the osd mode and the exosd mode. the all bordered (bordering around of character font) and the shadow bor- dered (bordering right and bottom sides of character font) are se- lected (refer to figure 73) by bit 2 of the osd control register (refer to figure 52). the border on/off is controlled by bit 2 of the block control register (refer to figure 53). the out1 signal is used for border output. the border color for each screen is specified by the border color register. the horizontal size (x) of border is 1t c (osd clock cycle divided in the pre-divide circuit) regardless of the character font dot size. the vertical size (y) different depending on the screen scan mode and the vertical dot size of character font. notes 1 : there is no border for the extra font. 2 : the border dot area is the shaded area as shown in figure 75. in the exosd mode, top and bottom of character font display area is not bordered. 3 : when the border dot overlaps on the next character font, the character font has priority (refer to figure 76 a). when the border dot overlaps on the next character back ground, the border has priority (refer to figure 76 b). 4 : the border is not displayed at right side of the most right dot in the display area of the 40th character (the character located at the most right of the block). fig. 73. example of border display fig. 74. horizontal and vertical size of border all bordered shadow bordered y x 1/2h 1h, 2h, 3h 1/2h, 1h, 2h, 3h 1/2h 1h 1h vertical dot size of character font border dot size scan mode horizontal size (x) vertical size (y) normal scan mode bi-scan mode 1t c (osd clock cycle divided in pre-divide circuit)
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 69 fig. 75. border area fig. 76. border priority fig. 77. structure of border color register 70 border color register (fc : address 021b 16 ) border color r control b 0 : no output 1 : output border color g control bit 0 : no output 1 : output border color b control bit 0 : no output 1 : output border color i1 control bit 0 : no output 1 : output border color i2 control bit 0 : no output 1 : output character boundary b character boundary a character boundary b 16 dots 16 dots 20 dots osd mode exosd mode 1 dot width of border 1 dot width of border 1 dot width of border 1 dot width of border character font area 20 dots
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 70 (11) multiline display the m37271mf-xxxsp can ordinarily display 16 lines on the crt screen by displaying 16 blocks at different vertical positions. in addi- tion, it can display up to 16 lines by using osd interrupts. an osd interrupt request occurs at the point at which display of each block has been completed. in other words, when a scanning line reaches the point of the display position (specified by the vertical position registers) of a certain block, the character display of that block starts, and an interrupt occurs at the point at which the scan- ning line exceeds the block. the mode in which an osd interrupt occurs is different depending on the setting of the raster color regis- ter (refer to figure 84). when bit 7 of the raster color register is 0 an osd interrupt occurs at the end of block display in the osd and the exosd mode. when bit 7 of the raster color register is 1 an osd interrupt occurs at the end of block display in the cc mode. notes 1: an osd interrupt does not occur at the end of display when the block is not displayed. in other words, if a block is set to off display by the display control bit of the block control reg- ister (addresses 00d0 16 to 00df 16 ), an osd interrupt re- quest does not occur (refer to figure 78 (a)). 2: when another block display appeares while one block is displayed, an osd interrupt request occurs only once at the end of the another block display (refer to figure 78 (b)). 3: on the screen setting window, an osd interrupt occurs even at the end of the cc mode block (off display) out of window (refer to figure 78 (c)). fig. 78. note on occurence of osd interrupt (b) (c) block 1 (on display) block 2 (on display) block 3 (on display) block 4 (on display) block 1 (on display) block 2 (on display) block 3 (off display) block 4 (off display) osd interrupt request osd interrupt request osd interrupt request osd interrupt request osd interrupt request osd interrupt request no osd interrupt request block 1 block 2 osd interrupt request osd interrupt request osd interrupt request osd interrupt request block 1 block 2 block 3 on display (osd interrupt request occurs at the end of block display) off display (osd interrupt request does not occur at the end of block display) in cc mode window no osd interrupt request no osd interrupt request (a)
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 71 bit 4 of osd control register bit 7 of block control register bit 4 of color code 1 out1 output signal out2 output signal notes 1 : blank is disabled on the left side of the 1st character and on the right side of the 40th character of each block. 2 : when using this function, set 009 16 to the 40th character. (12) automatic solid space function this function generates automatically the solid space (out1 or out2 blank output) of the character area in the cc mode. the solid space is output in the following area : the character area except character code 009 16 the character area on the left and right sides of the character area except character code 009 16 this function is turned on and off by bit 4 of the osd control register (refer to figure 52). 0 01 character character font part display area off table 18. setting for automatic solid space 0 1 01 character font part off character display area 0 01 solid space off 1 1 01 character font part solid space fig. 79. display screen example of automatic solid space 009 005 009 009 009 006 006 16 16 16 16 16 16 16 006 009 16 16 ? ? ? ? 009 16 009 16 when setting the character code ?05 16 ?as the character a, ?06 16 ?as the character b. (display memory) character to be displayed (display screen) 1st character 2nd character ( note 1 ) no blank output 39th character 40th character ( note 2 )( note 1 )
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 72 (13) scan mode m37271mf-xxxsp has the bi-scan mode for corresponding to h sync of double speed frequency. in the bi-scan mode, the vertical start display position and the vertical size is two times as compared with the normal scan mode. the scan mode is selected by bit 1 of the osd control register (refer to figure 52). (14) window function this function sets the top and bottom boundary of display limit on a screen. the window function is valid only in the cc mode. the top boundary is set by the window h registers 1 and 2. the bottom bound- ary is set by the window l registers 1 and 2. this function is turned on and off by bit 5 of the osd control register (refer to figure 52). the structure of the window h registers 1 and 2 is shown in figure 81, the structure of the window l registers 1 and 2 is shown in figure 82. notes 1: set values except 00 16 and 01 16 to the window h regis- ter 1 when the window h register 2 is 00 16 . 2: set the register value fit for the following condition : (wh1 + wh2) < (wl1 + wl2) bit 1 of osd control register vertical display start position vertical dot size table 19. setting for scan mode normal scan 0 value of vertical position register 5 1h 1t c 5 1/2h 1t c 5 1h 2t c 5 2h 3t c 5 3h bi-scan 1 value of vertical position register 5 2h 1t c 5 1h 1t c 5 2h 2t c 5 4h 3t c 5 6h scan mode parameter fig. 80. example of window function exosd mode window fgh i j cc mode kl mno cc mode pqrst cc mode osd mode bottom boundary of window top boundary of window screen abcde uvwxy
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 73 fig. 82. structure of window l registers fig. 81. structure of window h registers window l register 1 (wl1 : address 021d ) control bits of window bottom boundary (note) bottom boundary position (low-order 8bits) t h 5 (setting value of low-order 2bits of wl2 5 16 +setting value of high-order 4bits of wl1 5 16 +setting value of low-order 4bits of wl1 5 16 ) 2 0 1 window l register 2 (wl2 : address 021f ) control bits of window bottom boundary (note) bottom boundary position (high-order 2bits) t h 5 (setting value of low-order 2bits of wl2 5 16 +setting value of high-order 4bits of wl1 5 16 +setting value of low-order 4bits of wl1 5 16 ) 2 0 1 note : set values fit for the following condition : (wh1+wh2) < (wl1+wl2). 16 16 window h register 1 (wh1 : address 021c ) control bits of window top boundary (note) top boundary position (low-order 8bits) t h 5 (setting value of low-order 2bits of wh2 5 16 +setting value of high-order 4bits of wh1 5 16 +setting value of low-order 4bits of wh1 5 16 ) 2 0 1 window h register 2 (wh2 : address 021e ) control bits of window top boundary (note) top boundary position (high-order 2bits) t h 5 (setting value of low-order 2bits of wh2 5 16 +setting value of high-order 4bits of wh1 5 16 +setting value of low-order 4bits of wh1 5 16 ) 2 0 1 note : set values except 00 16 and 01 16 to the wh1 when the wh2 is 00 16. 16 16 7 0 7 0 7 0 7 0
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 74 (15) osd output pin control the osd output pins r, g, b, and out1 can also function as ports p5 2 , p5 3 , p5 4 and p5 5 . set the corresponding bit of the osd port control register (address 00cb 16 ) to 0 to specify these pins as osd output pins, or set it to 1 to specify it as a general-purpose port p5 pins. the out2, i1, and i2 can also function as port p1 0 , p1 5 , p1 6 . set the corresponding bit of the port p1 direction register (address 00c3 16 ) to 1 (output mode). after that, switch between the osd output function and the port function by the osd port control regis- ter. set the corresponding bit to 1 to specify the pin as osd output pin, or set it to 0 to specify as port p1 pin. the input polarity of the h sync , v sync and output polarity of signals r, g, b, i1, i2, out1 and out2 can be specified with the i/o polarity control register (address 0217 16 ) . set a bit to 0 to specify positive polarity; set it to 1 to specify negative polarity (refer to figure 64). the structure of the osd port control register is shown in figure 83. fig. 83. structure of osd port control register 70 0 osd port control register (pf : address 00cb 16 ) port p1 5 output signal selection bit 0 : port p1 5 output 1 : i1 signal output port p1 6 output signal selection bit 0 : port p1 6 output 1 : i2 signal output port p5 2 output signal selection bit 0 : r signal output 1 : port p5 2 output port p5 3 output signal selection bit 0 : g signal output 1 : port p5 3 output port p5 4 output signal selection bit 0 : b signal output 1 : port p5 4 output port p5 5 output signal selection bit 0 : out1 signal output 1 : port p5 5 output port p1 0 output signal selection bit 0 : port p1 0 output 1 : out2 signal output fix this bit to ?.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 75 (16) raster coloring function an entire screen (raster) can be colored by setting the bits 6 to 0 of the raster color register. since each of the r, g, b, i1, i2, out1, and out2 pins can be switched to raster coloring output, 7 raster colors can be obtained. if the out1 pin has been set to raster coloring output, a raster color- ing signal is always output during 1 horizontal scanning period. this setting is necessary for erasing a background tv image. if the r, g, b, i1, and i2 pins have been set to output, a raster color- ing signal is output in the part except a no-raster colored character (in figure 85, a character 1) during 1 horizontal scanning period. this ensures that character colors are not mixed with the raster color. the structure of the raster color register is shown in figure 84, the example of raster coloring is shown in figure 85. fig. 84. structure of raster color register fig. 85. example of raster coloring h sync aaaaaaaaaaa a aaaaaaaaa a a aaaaaaaaa a a aaaaaaaaa a a aaaaaaaaa a a aaaaaaaaa a aaaaaaaaaaa a' a out1 r g b a : character color ?ed?(r) : border color ?reen?(g) : background color ?agenta?(r and b) : raster color ?lue?(r and out1) signals across a-a' 70 raster color register (rc : address 0218 16 ) raster color r control bit 0 : no output 1 : output raster color g control bit 0 : no output 1 : output raster color b control bit 0 : no output 1 : output raster color i1 control bit 0 : no output 1 : output raster color i2 control bit 0 : no output 1 : output raster color out1 control bit 0 : no output 1 : output raster color out2 control bit 0 : no output 1 : output osd interrupt source selection bit 0 : interrupt occurs at end of osd or exosd block display 1 : interrupt occurs at end of cc mode block display
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 76 interrupt interval determination function the m37271mf-xxxsp incorporates an interrupt interval determi- nation circuit. this interrupt interval determination circuit has an 8-bit binary up counter as shown in figure 86. using this counter, it deter- mines an interval or a pulse width on the int1 or int2 (refer to fig- ure 88). the following describes how the interrupt interval is determined. 1. the determination mode is selected by using bit 5 of the interrupt interval determination control register (address 0212 16 ). when this bit is set to 0, the interrupt interval determination mode is se- lected; when the bit is set to 1, the pulse width determination mode is selected. 2. the interrupt input to be determined (int1 input or int2 input) is selected by using bit 2 in the interrupt interval determination con- trol register (address 0212 16 ). when this bit is cleared to 0, the int1 input is selected ; when the bit is set to 1, the int2 input is selected. 3. when the int1 input is to be determined, the polarity is selected by using bit 3 of the interrupt interval determination control register ; when the int2 input is to be determined, the polarity is selected by using bit 4 of the interrupt interval determination control register. when the relevant bit is cleared to 0, determination is made of the interval of a positive polarity (rising transition) ; when the bit is set to 1, determination is made of the interval of a negative po- larity (falling transition). 4. the reference clock is selected by using bit 1 of the interrupt inter- val determination control register. when the bit is cleared to 0, a 32 m s clock is selected ; when the bit is set to 1, a 16 m s clock is selected (based on an oscillation frequency of 8mhz in either case). 5. simultaneously when the input pulse of the specified polarity (rising or falling transition) occurs on the int1 pin (or int2 pin), the 8-bit binary up counter starts counting up with the selected reference clock (32 m s or 16 m s). 6. simultaneously with the next input pulse, the value of the 8-bit binary up counter is loaded into the interrupt interval determina- tion register (address 0211 16 ) and the counter is immediately re- set (00 16 ). the reference clock is input in succession even after the counter is reset, and the counter restarts counting up from 00 16 . 7. when count value fe 16 is reached, the 8-bit binary up counter stops counting. then, simultaneously when the next reference clock is input, the counter sets value ff 16 to the interrupt inter- val determination register. the reference clock is generated by setting bit 0 of the pwm mode register 1 to 0.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 77 fig. 88. setting value of interrpt interval determination control register and measuring interval fig. 86. block diagram of interrupt interval determination circuit fig. 87. structure of interrupt interval determination control register re 5 0 0 1 1 re i 0 1 0 1 int1 or int2 input count interval re i : bit i (i = 3, 4) of interrupt interval determination control register (address 0211 16 ) 8 data bus control circuit connected to black colored side at rest. selection gate : (address 0211 16 ) 32 m s re 1 16 m s 8-bit binary up counter (8) interrupt interval determination register(8) re 0 8 int1 (note) re 2 int2 (note) note: the pulse width of external interrupt int1 and int2 needs 5 or more machine cycles. re: input interval determination control register 0 7 interrupt interval determination control register (re : address 0212 16 ) interrupt interval determination circuit operation control bit 0 : stopped 1 : operating external interrupt input pin selection bit 0 : int1 input 1 : int2 input int1 pin input polarity switch bit 0 : positive polarity input 1 : negative polarity input int2 pin input polarity switch bit 0 : positive polarity input 1 : negative polarity input interrupt interval determination mode switch bit 0 : interrupt interval determination mode 1 : pulse width determination mode reference clock control selection bit (at f(x in ) = 8mhz) 0 : 32 m s 1 : 16 m s int3 pin input polarity switch bit 0 : positive polarity input 1 : negative polarity input a-d conversion int3 interrupt source selection bit 0 : int3 interrupt 1 : a-d conversion interrupt
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 78 reset circuit the m37271mf-xxxsp is reset according to the sequence shown in figure 90. it starts the program from the address formed by using the content of address ffff 16 as the high-order address and the content of the address fffe 16 as the low-order address, when the ______ reset pin is held at l level for 2 m s or more while the power source voltage is 5 v 10 % and the oscillation of a quartz-crystal oscillator or a ceramic resonator is stable and then returned to h level. the internal state of microcomputer at reset are shown in figures 3 to 7. an example of the reset circuit is shown in figure 89. the reset input voltage must be kept 0.9 v or less until the power source voltage surpasses 4.5 v. fig. 90. reset sequence fig. 89. example of reset circuit x in f reset internal reset sync address data 32768 count of x in clock cycle (note 3) reset address from the vector table ? ? 01, s 01, s-1 01, s-2 fffe ffff ad h , ad l ? ? ? ? ? ad l ad h notes 1 : f(x in ) and f( f ) are in the relation : f(x in ) = 2f ( f ). 2 : a question mark (?) indicates an undefined state that depends on the previous state. 3 : immediately after a reset, timer 3 and timer 4 are connected in hardware. at this time, ff 16 is set in timer 3 and 07 16 is set to timer 4. timer 3 counts down with f(x in )/16, and reset state is released by the timer 4 overflow signal. power source voltage 0 v reset input voltage 0 v 4.5 v 0.9 v poweron 32 36 33 vcc reset vss m37271mf-xxxsp 1 5 4 3 0.1 m f m51953al
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 79 fig. 91. i/o pin block diagram (1) ports p0 3 , p1 0 , p1 5 ?1 7 , p2, p3 0 , p3 1 data bus direction register port latch data bus direction register port latch data bus direction register port latch ports p0 0 ?0 2 , p0 4 ?0 7 ports p1 1 ?1 4 n-channel open-drain output ports p0 0 Cp0 2 , p0 4 Cp0 7 note : each port is also used as below : p0 0 Cp0 2 : pwm4Cpwm6 p0 4 Cp0 7 : pwm0Cpwm3 n-channel open-drain output port p1 1 -p1 4 note : each port is also used as below : p1 1 : scl1 p1 2 : scl2 p1 3 : sda1 p1 4 : sda2 cmos output ports p0 3 , p1 0 , p1 5 Cp1 7 , p2, p3 0 , p3 1 note : each port is also used as below : p1 0 : out2 p1 5 : i1 p1 6 : i2/int3 p1 7 : s in p2 4 Cp2 6 : ad3Cad1
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 80 n-channel open-drain output ports s out , s clk note : each pin is also used as below : s out : p4 5 s clk : p4 6 r, g, b, out1 note : each pin is also used as below : r : p5 2 b : p5 4 g : p5 3 out1 : p5 5 cmos output h sync , v sync schmidt input fig. 92. i/o pin block diagram (2) ports p4 0 Cp4 4 note : each port is also used as below : p4 0 : ad4 p4 1 : int2 p4 2 : tim2 p4 3 : tim3 p4 4 : int1 h sync , v sync s out , s clk r, g, b, out1 data bus direction register internal circuit data bus ports p4 0 ?4 4 internal circuit
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 81 clock generating circuit the m37271mf-xxxsp has 2 built-in oscillation circuits. an oscilla- tion circuit can be formed by connecting a resonator between x in and x out (x cin and x cout ). use the circuit constants in accordance with the resonator manufacturers recommended values. no exter- nal resistor is needed between x in and x out since a feed-back re- sistor exists on-chip. however, an external feed-back resistor is needed between x cin and x cout . when using x cin -x cout as sub- clock, clear bits 5 and 4 of the clock source control register to 0. to supply a clock signal externally, input it to the x in (x cin ) pin and make the x out (x cout ) pin open. when not using x cin clock, con- nect the x cin to v ss and make the x cout pin open. after reset has completed, the internal clock f is half the frequency of x in . immediately after poweron, both the x in and x cin clock start oscillating. to set the internal clock f to low-speed operation mode, set bit 7 of the cpu mode register (address 00fb 16 ) to 1. oscillation control (1) stop mode the built-in clock generating circuit is shown in figure 93. when the stp instruction is executed, the internal clock f stops at h level. at the same time, timers 3 and 4 are connected in hardware and ff 16 is set in the timer 3, 07 16 is set in the timer 4. select f(x in )/16 or f(x cin )/16 as the timer 3 count source (set both bit 0 of the timer mode register 2 and bit 6 at address 00c7 16 to 0 before the execu- tion of the stp instruction). and besides, set the timer 3 and timer 4 interrupt enable bits to disabled (0) before execution of the stp instruction. the oscillator restarts when external interrupt is accepted, however, the internal clock f keeps its h level until timer 4 over- flows. because this allows time for oscillation stabilizing when a ce- ramic resonator or a quartz-crystal oscillator is used. (2) wait mode when the wit instruction is executed, the internal clock f stops in the h level but the oscillator continues running. this wait state is released at reset or when an interrupt is accepted (note). since the oscillator does not stop, the next instruction can be executed at once. note: in the wait mode, the following interrupts are invalid. (1) v sync interrupt (2) osd interrupt (3) timers 1 and 2 interrupts using p4 2 /tim2 pin input as count source (4) timer 3 interrupt using p4 3 /tim3 pin input as count source (5) data slicer interrupt (6) multi-master i 2 c-bus interface interrupt (7) f(x in )/4096 interrupt (8) all timer interrupts using f(x in )/2 or f(x cin )/2 as count source (9) all timer interrupts using f(x in )/4096 or f(x cin )/4096 as count source (10) a-d conversion interrupt fig. 93. ceramic resonator circuit example fig. 94. external clock input circuit example (3) low-speed mode if the internal clock is generated from the sub-clock (x cin ), a low power consumption operation can be realized by stopping only the main clock x in . to stop the main clock, set bit 6 (cm 6 ) of the cpu mode register (00fb 16 ) to 1. when the main clock x in is restarted, the program must allow enough time to for oscillation to stabilize. note that in low-power-consumption mode the x cin -x cout drivability can be reduced, allowing even lower power consumption (60 m a with f (x cin ) = 32khz). to reduce the x cin -x cout drivability, clear bit 5 (cm 5 ) of the cpu mode register (00fb 16 ) to 0. at reset, this bit is set to 1 and strong drivability is selected to help the oscillation to start. when an stp instruction is executed, set this bit to 1 by soft- ware before executing. x cin x in c cin m37271mf-xxxsp x cout r f r d c cout x out c in c out x cin m37271mf-xxxsp external oscillation circuit or external pulse x cout x in x out open open external oscillation circuit vcc vss vcc vss
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 82 fig. 95. clock generating circuit block diagram x cin x cout osc1 oscillating mode selection bits (notes 1, 4) internal system clock selection bit (notes 1, 3) internal system clock selection bit (notes 1, 3) main clock (x in ? out ) stop bit (notes 1, 3) r s q stp instruction wit instruction r s q reset interrupt disable flag i interrupt request r s q reset stp instruction timing f (internal clock) timer 3 count source selection bit (notes 1, 2) ? timer 3 count stop bit (notes 1, 2) timer 4 count stop bit (notes 1, 2) timer 3 timer 4 1/2 1/8 x out x in ? ? ? notes 1 : the value at reset is ?. 2 : refer to the structure of timer mode register 2. 3 : refer to the structure of cpu mode register (next page). 4 : refer to the structure of clock source control register.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 83 fig. 96. state transitions of system clock reset the example assumes that 8 mhz is being applied to the x in pin and 32 khz to the x cin pin. the f indicates the internal clock. wit instruction cm 7 : internal system clock selection bit 0 : x in -x out selected (high-speed mode) 1 : x cin -x cout selected (low-speed mode) cpu mode register (address : 00fb 16 ) cm 6 : main clock (x in ? out ) stop bit 0 : oscillating 1 : stopped 8mhz oscillating 32khz oscillating f is stopped (?? timer operating 8mhz oscillating 32khz oscillating f( f ) = 4mhz 8mhz stopped 32khz stopped f is stopped (?? 8mhz oscillating 32khz oscillating f is stopped (?? timer operating (note 3) 8mhz oscillating 32khz oscillating f( f ) = 16khz 8mhz stopped 32khz stopped f is stopped (?? 8mhz stopped 32khz stopped f = stopped (?? 8mhz stopped 32khz oscillating f( f ) = 16khz 8mhz stopped 32khz oscillating f is stopped (?? timer operating (note 3) interrupt stp instruction interrupt (note 1) wit instruction interrupt wit instruction interrupt stp instruction interrupt (note 2) stp instruction interrupt (note 2) cm 7 = 1 cm 7 = 0 cm 6 = 1 cm 6 = 0 external int, timer interrupt, or si/o interrupt external int notes 1: when the stp state is ended, a delay of approximately 8ms is automatically generated by timer 3 and timer 4. 2: the delay after the stp state ends is approximately 2s. 3: when the internal clock f divided by 8 is used as the timer count source, the frequency of the count source is 2khz. the program must allow time for 8mhz oscillation to stabilize high-speed operation start mode
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 84 display oscillation circuit the osd oscillation circuit has a built-in clock oscillation circuits, so that a clock for osd can be obtained simply by connecting an lc, a ceramic resonator, or a quartz-crystal oscillator across the pins osc1 and osc2. which of the sub-clock or the osd oscillation circuit is selected by setting bits 5 and 4 of the clock source control register (address 0216 16 ). addressing mode the memory access is reinforced with 17 kinds of addressing modes. refer to the series 740 users manual for details. machine instructions there are 71 machine instructions. refer to the series 740 users manual for details. programming notes (1) the divide ratio of the timer is 1/(n+1). (2) even though the bbc and bbs instructions are executed imme- diately after the interrupt request bits are modified (by the pro- gram), those instructions are only valid for the contents before the modification. at least one instruction cycle is needed (such as an nop) between the modification of the interrupt request bits and the execution of the bbc and bbs instructions. (3) after the adc and sbc instructions are executed (in decimal mode), one instruction cycle (such as an nop) is needed before the sec, clc, or cld instruction is executed. (4) an nop instruction is needed immediately after the execution of a plp instruction. (5) in order to avoid noise and latch-up, connect a bypass capacitor ( ? 0.1 m f) directly between the v cc pinCv ss pin, av cc pinCv ss pin, and the v cc pinCcnv ss pin using a thick wire. fig. 97. display oscillation circuit auto-clear circuit when power source is supplied, the auto-clear function can be per- ______ formed by connecting the following circuit to the reset pin. fig. 98. auto-clear circuit example reset vss vcc circuit example 1 reset vss vcc circuit example 2 note : make the level change from ??to ??at the point at which the power source voltage exceeds the specified voltage. osc2 osc1 l c1 c2
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 85 prom programming method the built-in prom of the one time prom version (blank) and built- in eprom version can be read or programmed with a general-pur- pose prom programmer using a special programming adapter. product m37271efsp name of programming adapter pca7400 the prom of the one time prom version (blank) is not tested or screened in the assembly process and following processes. to en- sure proper operation after programming, the procedure shown in figure 99 is recommended to verify programming. fig. 99. programming and testing of one time prom version programming with prom programmer screening (caution) (150? for 40 hours) verification with prom programmer functional check in target device caution : the screening temperature is far higher than the storage temperature. never expose to 150? exceeding 100 hours. data required for mask orders the following are necessary when ordering a mask rom produc- tion: (1) mask rom order confirmation form (2) mark specification form (3) data to be written to rom, in eprom form ( 32-pin dip type 27c101, three identical copies)
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 86 7.9 29 11.0 26.5 15.262 1.5 limits power source voltage v cc , av cc input voltage cnv ss input voltage p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 , p3 1 , p4 0 Cp4 6 , p6 4 , osc1, ______ x in , h sync , v sync , reset, cv in output voltage p0 3 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 , p3 1 , r, g, b, out1, s out , s clk , x out , osc2 output voltage p0 0 Cp0 2 , p0 4 Cp0 7 circuit current r, g, b, out1, out2, p0 3 , p1 5 Cp1 7 , p2 0 Cp2 7 , p3 0 , p3 1 circuit current r, g, b, out1, out2, p0 3 , p1 5 Cp1 7 , p2 0 Cp2 7 , s out , s clk circuit current p1 1 Cp1 4 circuit current p0 0 Cp0 2 , p0 4 Cp0 7 circuit current p3 0 , p3 1 power dissipation operating temperature storage temperature symbol v cc , av cc v i v i v o absolute maximum ratings conditions all voltages are based on v ss . output transistors are cut off. parameter C0.3 to 13 0 to 1 (note 1) 0 to 2 (note 2) 0 to 6 (note 2) 0 to 1 (note 2) 0 to 10 (note 3) 550 C10 to 70 C40 to 125 v ma ma ma ma ma mw c c min. 4.5 2.0 0 0.8v cc 0.7v cc 0 0 0 typ. 5.0 0 max. 5.5 5.5 0 v cc v cc 0.4 v cc 0.3 v cc 0.2 v cc 1 2 input frequency tim2, tim3, int1, int2, int3 input frequency s clk input frequency scl1, scl2 input frequency horizontal sync. signal of video signal input amplitude video signal cv in v v v v v v v v ma ma recommended operating conditions (t a = C10 c to 70 c, v cc = 5 v 10 %, unless otherwise noted) power source voltage (note 4), during cpu, osd, data slicer operation ram hold voltage (when clock is stopped) power source voltage h input voltage p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 , p3 1, ______ p4 0 Cp4 6 , p6 4 , h sync , v sync , reset, x in , osc1 h input voltage p1 1 Cp1 4 (when using i 2 c-bus) l input voltage p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 , p3 1, p4 0 Cp4 6 , p6 3 , p6 4 l input voltage scl1, scl2, sda1, sda2, (when using i 2 c-bus) l input voltage (note 6) p4 1 Cp4 4 , p4 6 , p1 6 , p1 7 , h sync , v sync , ______ reset, x in , osc1 h average output current (note 1) r, g, b, out1, out2, p0 3 , p1 5 Cp1 7 , p2 0 Cp2 7 , p3 0 , p3 1 l average output current (note 2) r, g, b, out1, out2, p0 3 , p1 5 Cp1 7 , p2 0 Cp2 7 , s out , s clk l average output current (note 2) p1 1 Cp1 4 l average output current (note 2) p0 0 Cp0 2 , p0 4 Cp0 7 l average output current (note 3) p3 0 , p3 1 oscillation frequency (for cpu operation) (note 5) x in oscillation frequency (for sub-clock operation) x cin v cc , av cc v cc , av cc v ss v ih1 v ih2 v il1 v il2 v il3 i oh i ol1 symbol parameter unit f hs1 f hs2 f hs3 f hs4 v i khz mhz khz khz v mhz ma ma ma mhz khz 6 1 10 8.1 35 27.0 27.5 100 1 400 16.206 2.5 8.0 32 27.0 15.734 2.0 i ol2 i ol3 i ol4 f cpu f clk v o i oh i ol1 i ol2 i ol3 i ol4 p d t opr t stg oscillation frequency (for osd) osc1 f osd lc oscillating mode ceramic oscillating mode t a = 25 c unit v v v v ratings C0.3 to 6 C0.3 to 6 C0.3 to v cc + 0.3 C0.3 to v cc + 0.3
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 87 ma m a ma m a v v max. 30 45 200 4 100 10 0.4 limits power source current h output voltage r, g, b, out1, out2, p0 3 , p1 5 Cp1 7 , p2 0 Cp2 7 , p3 0 , p3 1 l output voltage r, g, b, out1, out2, s out , s clk , p0 0 Cp0 7 , p1 5 Cp1 7 , p2 0 Cp2 7 l output voltage p3 0 , p3 1 l output voltage p1 1 Cp1 4 hysteresis ______ reset hysteresis (note 6) h sync , v sync , p4 1 Cp4 4 , p4 6 , p1 1 Cp1 4 , p1 7 h input leak current ______ reset, p0 3 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 , p3 1 , p4 0 Cp4 6 , p6 3 , p6 4 , h sync , v sync l input leak current ______ reset, p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 , p3 1 , p4 0 Cp4 6 , p6 3 , p6 4 , h sync , v sync h input leak current p0 0 Cp0 2 , p0 4 Cp0 7 i 2 c-busbus switch connection resistor (between scl1 and scl2, sda1 and sda2) min. 2.4 electric characteristics (v cc = 5 v 10 %, v ss = 0 v, f(x in ) = 8 mhz, t a = C10 c to 70 c, unless otherwise noted) i cc v oh v ol typ. 15 30 60 2 25 1 symbol parameter test conditions unit wait mode stop mode system operation v cc = 5.5 v, f(x in ) = 0, f(x cin ) = 32khz, osd off, data slicer off, low-power dissipation mode set (cm 5 = 0, cm 6 = 1) v cc = 5.5 v, f(x in ) = 8 mhz v cc = 5.5 v, f(x in ) = 0, f(x cin ) = 32khz, low-power dissipation mode set (cm 5 = 0, cm 6 = 1) v cc = 5.5 v, f(x in ) = 0, f(x cin ) = 0 v cc = 4.5 v i oh = C0.5 ma v cc = 4.5 v i ol = 0.5 ma crt off data slicer off crt on data slicer on v cc = 5.5 v, f(x in ) = 8 mhz 0.5 0.5 3.0 0.4 0.6 0.7 1.3 5 5 10 130 v t+ Cv tC i izh i izl i izh r bs v m a m a m a w v cc = 4.5 v i ol = 10.0 ma v cc = 4.5 v i ol = 3 ma i ol = 6 ma v cc = 5.0 v v cc = 5.0 v v cc = 5.5 v v i = 5.5 v v cc = 5.5 v v i = 0 v v cc = 5.5 v v i = 12 v v cc = 4.5 v notes 1: the total current that flows out of the ic must be 20 or less. 2: the total input current to ic (i ol1 + i ol2 + i ol3 ) must be 20 ma or less. 3: the total average input current for ports p3 0 , p3 1 to ic must be 10 ma or less. 4: connect 0.1 m f or more capacitor externally across the power source pins v cc Cv ss and av cc Cv ss so as to reduce power source noise. also connect 0.1 m f or more capacitor externally across the pins v cc Ccnv ss . 5: use a quartz-crystal oscillator or a ceramic resonator for the cpu oscillation circuit. when using the data slicer, use 8 mhz. 6: p1 6 , p4 1 Cp4 4 have the hysteresis when these pins are used as interrupt input pins or timer input pins. p1 1 Cp1 4 have the hysteresis when these pins are used as multi-master i 2 c-bus interface ports. p1 7 and p4 6 have the hysteresis when these pins are used as serial i/o pins. 7: when using the sub-clock, set f clk < f cpu /3.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 88 a-d converter characteristics (v cc = 5 v 10 %, v ss = 0 v, f(x in ) = 8 mhz, t a = C10 c to 70 c, unless otherwise noted) resolution non-linearity error differential non-linearity error zero transition error full-scale transition error conversion time reference voltage ladder resistor analog input current max. 8 2 0.9 2 4 12.5 v cc v ref bits lsb lsb lsb lsb m s v k w v min. 0 0 0 0 12.25 0 limits typ. unit test conditions parameter symbol v ot v fst t conv v ref r ladder v ia v cc = 5.12v i ol (sum) = 0ma v cc = 5.12v 25 multi-master i 2 c-bus bus line characteristics bus free time hold time for start condition l period of scl clock rising time of both scl and sda signals data hold time h period of scl clock falling time of both scl and sda signals data set-up time set-up time for repeated start condition set-up time for stop condition t buf t hd:sta t low t r t hd:dat t high t f t su:dat t su:sta t su:sto max. 1000 300 min. 1.3 0.6 1.3 20+0.1c b 0 0.6 20+0.1c b 100 0.6 0.6 max. 300 0.9 300 m s m s m s ns m s m s ns ns m s m s unit standard clock mode high-speed clock mode parameter symbol note: c b = total capacitance of 1 bus line fig. 100. definition diagram of timing on multi-master i 2 c-bus min. 4.7 4.0 4.7 0 4.0 250 4.7 4.0 sda scl p t buf s t hd : sta t low t r t hd : dat t high t f t su : dat t su : sta sr p t su : sto t hd : sta
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 89 package outline
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 90 gzz?h10?4b < 5za0 > 740 family mask rom confirmation form single-chip microcomputer m37271mf-xxxsp mitsubishi electric mask rom number date : supervisor signature receipt section head signature * customer company name date issued date : tel ( ) note : please fill in all items marked * . submitted by supervisor issuance signature * 1. confirmation specify the name of the product being ordered and the type of eproms submitted. three eproms are required for each pattern. if at least two of the three sets of eproms submitted contain identical data, we will produce masks based on this data. we shall assume the responsibility for errors only if the mask rom data on the products we produce differs from this data. thus, extreme care must be taken to verify the data in the submitted eproms. checksum code for entire eprom (hexadecimal notation) 27c101 eprom address 00000 16 product name ascii code : ?37271mf 0000f 16 0ffff 16 set ?f 16 ?in the shaded area. write the ascii codes that indicates the product name of ?37271mf to addresses 0000 (1) (2) eprom type (indicate the type used) 01000 16 osd rom 1e43f 16 * 2. mark specification mark specification must be submitted using the correct form for the type package being ordered fill out the appropriate mark specification form (52p4b for m37271mf-xxxsp) and attach to the mask rom confirmation form. do you set ?f 16 ?in the shaded area ? do you write the ascii codes that indicates the product name of ?37271mf to addresses 0000 16 to 000f 16 ? eprom data check item (refer the eprom data and check ? ?in the appropriate box) ? yes ? yes l l 10800 16 data rom 60k bytes 16 to 000f 16 .
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 91 gzz?h10?4b < 5za0 > 740 family mask rom confirmation form single-chip microcomputer m37271mf-xxxsp mitsubishi electric ? = 16 4d 16 ? = 33 16 ? = 3 7 16 ? = 3 2 16 ? = 37 16 ? = 3 1 16 ? = 4d 16 ? = 46 0000 16 0001 16 0002 16 0003 16 0004 16 0005 16 0006 16 0007 16 address = 16 2d 16 ff 16 ff 16 ff 16 ff 16 ff 16 ff 16 ff 0008 16 0009 16 000a 16 000b 16 000c 16 000d 16 000e 16 000f 16 address addresses 00000 16 to 0000f 16 store the product name, and addresses 10800 16 to 1e43f 16 store the character pattern. if the name of the product contained in the eproms does not match the name on the mask rom confirmation form, the rom processing is disabled. write the data correctly. inputting the name of the product with the ascii code ascii codes ?37271mf-?are listed on the right. the addresses and data are in hexadecimal notation. 1. inputting the character rom input the character rom data to character rom. for the character rom data, see the next page and on. 2. writing the product name and character rom data onto eproms
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 92 gzzCsh10C44b < 5za0 > 740 family mask rom confirmation form single-chip microcomputer m37271mf-xxxsp mitsubishi electric font data must be stored in the proper osd rom address according to the following table. (3/4) (2)osd rom address of extra font data (1)osd rom address of character font data line number = 02 16 to 15 16 character code = 00 16 to 13f 16 font bit = 0 : left font 1 : right font osd rom address bit line number / character code / font bit ad16 ad15 ad14 ad13 ad12 ad11 ad10 ad9 ad8 ad7 ad6 ad5 ad4 ad3 ad2 ad1 ad0 10 font bit line number character code osd rom address bit line number / extra code / font bit ad16 ad15 ad14 ad13 ad12 ad11 ad10 ad9 ad8 ad7 ad6 ad5 ad4 ad3 ad2 ad1 ad0 11 font bit line number extra code 0000 example) the font data 60 (shaded area ) of the character code aa 16 is stored in address 1 0 0 1 0 1 0 0 1 0 1 0 1 0 1 0 0 2 =12954 16 . 02 16 03 16 04 16 05 16 06 16 07 16 08 16 09 16 0a 16 0b 16 0c 16 0d 16 0e 16 0f 16 10 16 11 16 12 16 13 16 14 16 15 16 db7 db6 db5 db4 db3 db2 db1 db0 db7 db6 db5 db4 db3 db2 db1 db0 left font right font line number (1) character code aa 16 line number 19 16 (2) extra code 0a 16 db7 db6 db5 db4 db3 db2 db1 db0 db7 db6 db5 db4 db3 db2 db1 db0 left font right font 00 16 01 16 02 16 03 16 04 16 05 16 06 16 07 16 08 16 09 16 0a 16 0b 16 0c 16 0d 16 00 16 00 16 10 16 11 16 12 16 13 16 14 16 15 16 16 16 17 16 18 16 line number = 00 16 to 19 16 extra code = 00 16 to 1f 16 font bit = 0 : left font 1 : right font example) the font data 03 (shaded area ) of the extra code 0a 16 is stored in address 1 1 0 0 1 0 1 0 0 0 0 0 1 0 1 0 1 2 =19415 16 .
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 93 gzz?h10?4b < 5za0 > 740 family mask rom confirmation form single-chip microcomputer m37271mf-xxxsp mitsubishi electric 10a80 16 to 10bff 16 10e80 16 to 10fff 16 11280 16 to 113ff 16 11680 16 to 117ff 16 11a80 16 to 11bff 16 11e80 16 to 11fff 16 12280 16 to 123ff 16 12680 16 to 127ff 16 12a80 16 to 12bff 16 12e80 16 to 12fff 16 13280 16 to 133ff 16 13680 16 to 137ff 16 13a80 16 to 13bff 16 13e80 16 to 13fff 16 14280 16 to 143ff 16 14680 16 to 147ff 16 14a80 16 to 14bff 16 14e80 16 to 14fff 16 15280 16 to 153ff 16 15680 16 to 17fff 16 18040 16 to 183ff 16 18440 16 to 187ff 16 18840 16 to 18bff 16 18c40 16 to 18fff 16 19040 16 to 193ff 16 19440 16 to 197ff 16 19840 16 to 19bff 16 19c40 16 to 19fff 16 1a040 16 to 1a3ff 16 1a440 16 to 1a7ff 16 1a840 16 to 1abff 16 1ac40 16 to 1afff 16 1b040 16 to 1b3ff 16 1b440 16 to 1b7ff 16 1b840 16 to 1bbff 16 1bc40 16 to 1bfff 16 1c040 16 to 1c3ff 16 1c440 16 to 1c7ff 16 1c840 16 to 1cbff 16 1cc40 16 to 1cfff 16 1d040 16 to 1d3ff 16 1d440 16 to 1d7ff 16 1d840 16 to 1dbff 16 1dc40 16 to 1dfff 16 1e040 16 to 1e3ff 16 the following osd rom addresses must be set ?f.?there are no font data in these addresses.
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 94 52p4b (52-pin shrink dip) mark specification form
mitsubishi microcomputers m37271mf-xxxsp m37271ef-xxxsp, m37271efsp single-chip 8-bit cmos microcomputer with closed caption decoder and on-screen display controller 95 shrink dip mark specification form for one time prom version microcomputers
? 1997 mitsubishi electric corp. new publication, effective nov. 1997. specifications subject to change without notice. notes regarding these materials these materials are intended as a reference to assist our customers in the selection of the mitsubishi semiconductor product b est suited to the customer?s application; they do not convey any license under any intellectual property rights, or any other rights, belonging to mitsubishi electric corporation or a third party. mitsubishi electric corporation assumes no responsibility for any damage, or infringement of any third-party?s rights, origina ting in the use of any product data, diagrams, charts or circuit application examples contained in these materials. all information contained in these materials, including product data, diagrams and charts, represent information on products a t the time of publication of these materials, and are subject to change by mitsubishi electric corporation without notice due to product improvements or other reasons. it is therefore recommended that customers co ntact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for the latest product information before purchasing a product listed herein. mitsubishi electric corporation semiconductors are not designed or manufactured for use in a device or system that is used und er circumstances in which human life is potentially at stake. please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor when considering the use of a pro duct contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use. the prior written approval of mitsubishi electric corporation is necessary to reprint or reproduce in whole or in part these m aterials. if these products or technologies are subject to the japanese export control restrictions, they must be exported under a licen se from the japanese government and cannot be imported into a country other than the approved destination. any diversion or reexport contrary to the export control laws and regulations of japan and/or the country of destination is pro hibited. please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for further detai ls on these materials or the products contained therein. keep safety first in your circuit designs! mitsubishi electric corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. trouble with semiconductors may lead to personal injury, fire or property damage. remember to give due consideration to safety when making y our circuit designs, with appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of non-flammable material or (iii) prevention against any malfunction or mishap.
rev. rev. no. date 1.0 first edition 9708 2.0 information about copyright note, revision number, release date added (last page). 971130 (1/1) revision description revision description list m37271ef-xxxsp, m37271efsp data sheet m37271mf-xxxsp


▲Up To Search▲   

 
Price & Availability of M37271MF-231SP

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X